[TxMt] finding path of current file...

Juan juanfc at lcc.uma.es
Sun Feb 11 18:19:21 UTC 2007




El 11/02/2007, a las 15:46, dc escribió:

> i must be missing an obvious thing here, but whats the easiest way to
> find the path to the current document you are editing?
>
> i know of "reveal in project" but the full path? i would expect a
> right click to bring up some way to find this.
>
> interestingly running pwd as a command inside a doc returns "/"
>
> using ^S to search, opens up a search bar. it would be neat if this
> were like a command input area ala vi ... to run commands in the cwd.


I love to quickly have the path of the current document in the  
scrapbook for to use it in Terminal, for example.  An easy way is the  
command:

------- (v)None (^)ToolTip    CopyPath ^-Opt-Cmd-P
echo -n \"$TM_DIRECTORY\" | pbcopy
echo -n $TM_DIRECTORY
--------------------




More information about the textmate mailing list