On Sep 30, 2005, at 10:15 AM, textmate-request@lists.macromates.com wrote:
From: Allan Odgaard allan@macromates.com Date: September 30, 2005 10:14:31 AM EDT To: TextMate users textmate@lists.macromates.com Subject: Re: [TxMt] Re: Input from gets in Ruby (Sune Foldager) Reply-To: TextMate users textmate@lists.macromates.com
On 30/09/2005, at 16.09, William M Shobe wrote:
I have tried using gets and no input dialog pops up. Here is my code:
puts "this is a test" puts gets puts "end of test"
I use Run Ruby, and here is the output:
Works for me -- using latest build (http://get.textmate.org/):
cmd N (new buffer) Paste previous 3 lines option-ctrl-shift R (switch to Ruby) cmd R (Run Ruby)
And this is what I see:
<pastedGraphic.png>
Entering a string and pressing return outputs the strings and finishes the program.
The latest build works! Thank you.
Bill
PS When I download the latest build, there is a second file called "mate". Is there something I need to do with this file?
On Sep 30, 2005, at 17:12, William M Shobe wrote:
PS When I download the latest build, there is a second file called "mate". Is there something I need to do with this file?
That's a binary that allows you to launch TM from the command line, so you can do just
% mate myscript.py
to edit myscript.py in the current directory. In addition you can set the environment variable EDITOR to "mate -w" so that other command- line applications can delegate to TM, for instance svn. See "mate -h" for some other options.
To install it just throw it in some directory in your PATH.
-- fxn