[TextMate] Feature request: per-file-type commands

Allan Odgaard allan at macromates.com
Tue Oct 19 11:11:53 UTC 2004


On 19. Oct 2004, at 13:02, Jim Menard wrote:

> It would be nice if I could specify a per-file-type command. The same 
> key stroke would run different commands for different file types. For 
> example, I'd like to run "rake" for Ruby files, "ant" for Java, etc.

As of such, you can check the extension in your command by looking at 
$TM_FILEPATH

> Here's a really wacky feature request: a way to specify an argument to 
> the command each time I run it. When I'm developing, sometimes I want 
> to run "make" then "make set-up-test-data" then "make test", or do 
> things in a different order.

I think this will be possible when I introduce project-specific shell 
variables, as requested by Ivan (IIRC).


Kind regards Allan




More information about the textmate mailing list