Is there a shortcut I'm missing that would give me the path of the current file I'm working on? Ideally a key-combo that would put it on the clipboard
From within:
echo "$TM_FILEPATH" | pbcopy
from without:
echo $( osascript -e 'tell app "TextMate" to return path of first document' ) | pbcopy
Thanks Mark and Will .. that's exactly what I was looking for.
-steve On Nov 1, 2006, at 12:52 AM, William Scott wrote:
Is there a shortcut I'm missing that would give me the path of the current file I'm working on? Ideally a key-combo that would put it on the clipboard
From within:
echo "$TM_FILEPATH" | pbcopy
from without:
echo $( osascript -e 'tell app "TextMate" to return path of first document' ) | pbcopy
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate