[TxMt] How to use Teminal and TextMate in Ruby on Rails

Mark Eli Kalderon eli at markelikalderon.com
Sat May 17 15:58:45 UTC 2008


I made a command to open Terminal in a new tab. The applescript is a  
bit of a hack since, as was mentioned, Terminal is not properly  
scriptable. The command works for me, though YMMV. Best, Mark

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Open Terminal in New Tab.tmCommand.zip
Type: application/zip
Size: 1252 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20080517/a9f612d6/attachment.zip>
-------------- next part --------------

On May 17, 2008, at 1:33 PM, Takaaki Kato wrote:

> Hi,
>
> This is just a generic question on how you use Terminal and TextMate  
> in developing with Rails. I benefit from the bundles like Ruby,  
> Rails RubyAMP and RSpec. My problem is that I would like to have a  
> few Terminal tabs open for one application. I need one tab for  
> running commands like script/generate or rake tasks. (I know I can  
> use Control-Shift-\ for some tasks, but it feels a bit slow to me.)  
> Another tab is for the server log genarated after `script/server`.  
> And optionally I have a tab open for script/console.
>
>
> If I use Control-Shift-O, the Terminal window opens and `cd` to the  
> current directory. RubyAMP bundle has Control-Command-P for a  
> similar feature. But if I use the same command more than once, a new  
> Terminal window shows up. I would like to have a new tab instead.
>
>
> What I do currently is that: 1) Open the TextMate project file, 2) I  
> use Control-Shift-O to open the Terminal window and find myself in  
> the project directory, 3) run the AppleScript I made to duplicate a  
> tab.
>
>
> My AppleScript is written at <http://samuraicoder.net/applescript_duplicating_tabs_terminal 
> >. This is just a shitty script, simply emulates what I do on  
> keyboards. Is there anybody who can know a much better way? Or would  
> you suggest any better workflow?
>
>
> Takaaki
> -- 
> Takaaki Kato
> http://samuraicoder.net
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate



More information about the textmate mailing list