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:
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…).