On 16/8/2006, at 22:24, Charles Stuart wrote:
Next question: Is there a TM variable for the current open file? So, just like TM_FILEPATH, but with just the file name?
There is TM_FILENAME.
[...] I'm not sure how one would go about removing part of the TM_FILEPATH.
Should a similar situation arise:
Using a shell command to do it:
"$(basename "$TM_FILEPATH")"
Using bash variable substitution:
"${TM_FILEPATH##*/}"