On Sep 30, 2005, at 10:15 AM, textmate-request(a)lists.macromates.com
wrote:
>
> From: Allan Odgaard <allan(a)macromates.com>
> Date: September 30, 2005 10:14:31 AM EDT
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] Re: Input from gets in Ruby (Sune Foldager)
> Reply-To: TextMate users <textmate(a)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?
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:
this is a test
puts "this is a test"
end of test
Bill
> From: William M Shobe <shobe(a)virginia.edu>
> Date: September 29, 2005 10:28:59 AM EDT
> To: textmate(a)lists.macromates.com
> Subject: [TxMt] Input from gets in Ruby
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> Please excuse the simple question, but I am experimenting with
> TextMate and Ruby. The output from running a Ruby script goes to a
> stdout window. However, I can't figure out how to get input from
> the gets method. Is there any way to read from stdin when running
> a Ruby script from the Run Command>Ruby>Run Ruby menu?
>
> Thanks for any help.
>
> Bill Shobe
>
>
>
>
>
> From: Sune Foldager <cryo(a)cyanite.org>
> Date: September 29, 2005 12:08:58 PM EDT
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] Input from gets in Ruby
> <snip>
> Yes, this happens automatically, but stdin is redirected to read
> input from a dialog which should pop up whenever your script does a
> gets or similar.
>
> -- Sune.
>
>
> <snip>
>
> From: Sune Foldager <cryo(a)cyanite.org>
> Date: September 29, 2005 1:58:10 PM EDT
> To: Kumar McMillan <kumar.mcmillan(a)gmail.com>, TextMate users
> <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] Input from gets in Ruby
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On 29/09/2005, at 19.54, Kumar McMillan wrote:
>
>
>> oh, hehe, it is just the Run Ruby command. Sorry, I thought you
>> meant
>> this was built into TextMate!
>>
>
> Nope :-p, but it's built into the Run Python command also :-).
>
> -- Sune.
>
Please excuse the simple question, but I am experimenting with TextMate
and Ruby. The output from running a Ruby script goes to a stdout
window. However, I can't figure out how to get input from the gets
method. Is there any way to read from stdin when running a Ruby script
from the Run Command>Ruby>Run Ruby menu?
Thanks for any help.
Bill Shobe
I've started a very rudimentary TextMate language bundle for Django
templates (http://djangoproject.com). It's just a bunch of snippets
for tab-completion of the standard template tags and a very basic
language definition for syntax coloring.
I'm new to tmbundles, so everything is extremely basic and naive right
now, but if anybody out there is editing Django templates and using
TextMate, feel free to give it a whirl and let me know what does and
doesn't work. Suggestions or additions are welcome.
Grab the bundle here:
http://media.wilsonminer.com/images/django/Django.tmbundle.zip
When TM detects that a file with unsaved changes changed on disk, it
flies a warning panel. If the panel is not closed, but instead I
switch to another application and back to TM, it will fly another
panel. This can be repeated...
Also that panel should probably be modal to the window.
Gerd
as of rev. 469, the custom $PATH var I export from ~/.bash_profile
does not show up in a command *if* the command has a shebang. I don't
know if this is intended behavior but I had a snippet with :
#!/bin/sh
at the top and $PATH was not set the same way it is when I leave off
the shebang and let TextMate parse the command through bin/sh. I only
added the shebang when trying to debug something so obviously the
workaround (for bash anyway) is to leave off the shebang.
K
Is there a way to do this that is easier than all this svn stuff? I
want to install whatever I need to get my color highlighting of code
(html, javascript, PHP) back.
After having spent two days completely rebuilding three machines (and
there is still more to do) in the studio I don't have the patience to
figure out how to get SVN to work again...sigh. Why can't I simply
download a file, put it into a directly...and voila. Like a plugin
or whatever...
Help...
Thanks, v
html macro start/end tag from previous word is absolutely wrong. May
this be because of the new regexp rules/features?
when applying it on div, i get
?1< />:<></>d?1<iv />:<iv></iv>?1< />:<></>
it worked with 1.17beta.
Andreas