Launch files from the File Browser with a single click
Want to be able to open files in the File Browser with a single click like you used to in TextMate 1? Click the file’s icon! A lot of people are asking about this one.
I was delighted to see a significant update to the alpha released earlier today, with some much anticipated features/settings added. The big items here are the ability to disable text aliasing, the ability to put the file-browser on the right side of the window, and the option for HTML output to have its own window. See below for the complete release notes:
defaults write com.macromates.TextMate.preview htmlOutputPlacement window.
defaults write com.macromates.TextMate.preview disableAntiAlias -bool YES.
defaults write com.macromates.TextMate.preview fileBrowserPlacement right.
<CR>) on the general clipboard are converted to regular newlines when pasting.
TM_GITin Preferences is no longer eclipsed by the default properties (which set them to point at
A big thanks to macromates for this list of key commands for use when the file browser is in focus:
⌘⇡ Go to Enclosing Folder
⌘⇠ Go Back
⌘⇢ Go Forward
⇧⌘N New Folder
⌥⌘N New Tab
⇧⌘C Go to Computer
⇧⌘H Go to Home
⇧⌘D Go to Desktop
⇧⌘G Go to Folder…
⇧⌘F Search Selected Folder
⌘C Copy Path
⌘[ Go Back
⌘] Go Forward
As well as these mouse commands:
Single-click icon to open (or double click name).
Hold ⌥ when single-clicking a package (e.g. tmBundle) to descend into the package.
Hold ⌥ to “close other” if clicking a regular (text) file.
You can access a “Smart Folder” from the top bar of the folder drawer by clicking on the purple folder with a gear on it. This folder gives you a view of ‘Uncommitted Changes’ and ‘Untracked Files’ in your project*.
You can select files you want to commit using the Git bundle’s “Commit…” command (makes it easier if assign a shortcut to this menu item — maybe ⌘⌥⌃C — though you can use this tip to find one that doesn’t conflict).
You can also access a diff viewer from here which opens within textmate itself. Not ideal compared to GitX or Github, but for small commits it’s nice to not have to switch away from Textmate.
*This requires that you are using a source control system such as Git, Subversion or Mercurial, and that you have configure the proper path in .tm_properties.
If you’ve configured your .tm_properties file to point to your installation of git, the file browser will display source control status icons on your files.
You can see this on the index.php and header.php files in the repo above, both of which have not-yet-committed changes, and are displaying small blue circle icons.