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.
thanks!
/dc
(counting the days for japanese support in TM!) ------------------------------------------- David "DC" Collier mailto:dc@pikkle.com +81 (0)80 6521 9559 skype: callto://d3ntaku ------------------------------------------- Pikkle 株式会社 http://www.pikkle.com -------------------------------------------
doh!
thanks very much!
now is there was a way to "create textmate document here" - like an explorer shell extension in windows... when browsing a folder in the finder. (maybe this is a quicksilver thing?)
On 11/02/07, Nicolas Weber nicolasweber@gmx.de wrote:
Hi,
i must be missing an obvious thing here, but whats the easiest way to find the path to the current document you are editing?
Cmd-Click the file name in the title bar. This works in a lot of applications, not only in textmate.
HTH, Nico
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
now is there was a way to "create textmate document here" - like an explorer shell extension in windows... when browsing a folder in the finder. (maybe this is a quicksilver thing?)
The easiest way to do this with vanilla os x is to open a new document in textmate, hit cmd-s, drag the folder you want to save this in into the save box (which will then change into that directory), enter a filename, hit enter. You can drag the 'proxy icon' of the directory as well (proxy icon = the icon in the title bar).
The easiest way to add a real 'create textmate document here' is probably with OnMyCommand, but there are other easy ways for sure. I have an 'open terminal here' context menu entry which I use with 'mate filename' to open new textmate files where I want. I need the terminal anyways most of the time, so this is more useful for me.
HTH.
On Feb 11, 2007, at 10:25 AM, Nicolas Weber wrote:
now is there was a way to "create textmate document here" - like an explorer shell extension in windows... when browsing a folder in the finder. (maybe this is a quicksilver thing?)
The easiest way to do this with vanilla os x is to open a new document in textmate, hit cmd-s, drag the folder you want to save this in into the save box (which will then change into that directory), enter a filename, hit enter. You can drag the 'proxy icon' of the directory as well (proxy icon = the icon in the title bar).
Surely the easiest thing is to drag the folder onto the TextMate icon, so that TM opens it as a scratch project, and then to press shift+cmd+N to create a new file in project.
Haris
Surely the easiest thing is to drag the folder onto the TextMate icon, so that TM opens it as a scratch project, and then to press shift+cmd+N to create a new file in project.
Well, but that takes forever if your folder contains lots of files and subfolders (say you want to create a new file in your home folder) :-)
On Feb 11, 2007, at 11:00 AM, Nicolas Weber wrote:
Surely the easiest thing is to drag the folder onto the TextMate icon, so that TM opens it as a scratch project, and then to press shift+cmd+N to create a new file in project.
Well, but that takes forever if your folder contains lots of files and subfolders (say you want to create a new file in your home folder) :-)
True, true, but it is definitely a good approach for folders without many files.
Haris, who is now waiting for TM to load his entire home folder as a project and might have to restart TM :(
Hi,
now is there was a way to "create textmate document here" - like an explorer shell extension in windows... when browsing a folder in the finder. (maybe this is a quicksilver thing?)
I use NuFile -- it pretty much fits that niche perfectly:
http://growlichat.com/NuFile.php
You can set up many types of new files w/ a template. It adds a `New File > ...` contextual menu item in the finder.
I likes it.
I likes it a lot, -steve
Hello, inspired by one user of the list, I have made a "Create Textmate document here" automator script, it can be installed in the contextual menu of the finder. When launched it asks for a filename and then creates a file in the place you called the script. It is actually done by opening it with mate.
It's very simple.
You can download the plugin here:
http://www.kualosw.com/dario/tmhere.zip
Hope it helps someone.
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 --------------------