[TxMt] Tweaking php "run" command

Jeroen van der Ham jeroen at je-ju.net
Thu Dec 1 17:49:00 UTC 2005


David Clark wrote:
> content='0;URL=$TM_PROJ_URL/$TM_FILEPATH
> 
> The problem is that filepath is full.

If you want to only have the filename, than you could use $TM_FILENAME.

But I'm guessing you know about that one and require the path within the 
project.

In that case, you might want to try ${TM_FILEPATH#$TM_PROJECT_DIRECTORY}
(TM_FILEPATH with the prefix TM_PROJECT_DIRECTORY removed, see "man sh", 
section on parameter expansion.)

Jeroen.



More information about the textmate mailing list