[TxMt] Relative paths in shell variable

Brian Lalor blalor at bravo5.org
Thu Jun 23 12:49:51 UTC 2005


On Jun 23, 2005, at 3:33 AM, Chris Jenkins wrote:

> I know this is kind of cheeky, but I am thinking of making some  
> macros where
> it would be incredibly useful to be able to get the path of the  
> current file
> relative to the project directory, instead of as an absolute path  
> from the
> root hard drive, is there any possibility this could be added? (I  
> really
> have no idea how difficult this might be). Or perhaps this is so  
> easy in
> Perl that its not worth the effort, Im afraid I don't know any Perl.

You might look to the Java bundle for inspiration.  I do something  
similar with the templates in there.

--
    __   ____
   / /  / __/ Brian Lalor           "If you still have gas, you're  
not lost."
  / _ \/__ \  blalor at bravo5.org             -- Jacques Strappe
/_.__/____/  http://bravo5.org/





More information about the textmate mailing list