[TxMt] Re: From TM1 to TM2

Allan Odgaard mailinglist at textmate.org
Tue Mar 19 18:55:59 UTC 2013


On 18 Mar 2013, at 15:44, Alain Matthes wrote:

> […] I used a soft You Control  to add a folder in the menu bar with 
> all xxx.proj files. I can with this process
> access directly the projects without open TM1
>
> I tried to use the same process with TM2. I found only the new way 
> […]

I think the approach with a shell script per project is the best 
approach ATM.

What you could do to make it slightly easier is to use a TM command to 
create these scripts, it would be something like:

     #!/bin/bash
     dst="$HOME/Projects/${TM_PROJECT_DIRECTORY##*/}.sh"
     cat > "$dst" <<SH
     #!/bin/sh
     "'${TM_MATE}'" "'${TM_PROJECT_DIRECTORY}'"
     SH

If bound e.g. to ⌃⌘S you can easily add new “project” to your 
menu.


More information about the textmate mailing list