uɐʎɹ ррoʇ uɐʎɹ bio photo

uɐʎɹ ррoʇ uɐʎɹ

Hello. Is is me you're looking for?
robotic life signs.
makes noise, hears sounds, intafon.
affe auf deux roues.

Email Github Github Gist Last.fm Soundcloud Flickr

Something that has bothered me for a while in TextMate is that in the project drawer you can open a single file in a new window. Often, I like to open a new scratch project window to edit certain files that may also be in the project itself. A simple solution to this is to create a new TextMate command (I called it “Open from Drawer” since it allows you to simply open a single file, even though it opens in the same project window). Set the Save to “Nothing”, and the Input and Output to “None” and “Discard”. In the Commands field, enter the following:

osascript -e "tell application \"TextMate\" to open POSIX file \"$TM_SELECTED_FILE\""

You can set a Key Equivalent if you like. When done, select a folder in your project drawer. If the folder is a file system folder (rather than a group), the script will spawn a new project window containing all the files in that folder. Selecting a “group” folder will do nothing (may work on that one later…).