December 2011
25 posts
1 tag
Launch files from the File Browser with a single...
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.
8956 Released
Development continues. This release allows you to disable the functionality that hides the tab bar when only one file is open. Disabling that auto hide makes Textmate 2’s functionality like that of Textmate 1.
2011-12-18
Introduced callback.application.did-activate and callback.application.did-deactivate as two new semantic classes. A command with this class will be executed when the...
TextMate Blog » Multiple Carets →
In this article will discuss:
Using multiple carets with the mouse
Changes to column selection
Using multiple carets with Find
Using multiple carets with Copy and Paste
1 tag
⌘X in the File Browser
Allan pointed out to us yesterday that In addition to ⌘C one can also use ⌘X and ⌘V to move/copy files around (⌘X doesn’t “cut” before ⌘V is used).
2 tags
Language codes →
Thanks to llamageddon for this list of language codes used for spellingLanguage in tm_properties
3 tags
Replicating Edit Each Line In Selection
Here’s a great tip from eirkeirkeirk :
I noticed the ⌘⌥A command was gone from TM2. But I figured out a way to replicate it.
- Select all the lines you want to edit
- Turn it into a column selection (tap ⌥)
- Then ⌘→ to move all the carets to the end of each line
This is actually better than the previous incarnation because:
- You can actually see the carets, where as before you were...
4 tags
An excellent example of a .tm_properties file →
A big thanks to hmans for sharing his .tm_properties file. Particularly useful are his instructions on how to hide specific directories (in this case: log, vendor and tmp) from the “Find File” dialog, but not from the project browser.
5 tags
8949 Released
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:
2011–12–16
HTML output can open in its...
4 tags
TextMate Blog » Git Style Configuration →
3 tags
File Browser keyboard shortcuts
A big thanks to macromates for this list of key commands for use when the file browser is in focus:
⌘⇡ Go to Enclosing Folder ⌘⇣ Open ⌘⇠ Go Back ⌘⇢ Go Forward ↩ Rename ␣ QuickLook ⇧⌘N New Folder ⌥⌘N New Tab ⌘D Duplicate ⌘⌫ Delete ⇧⌘C Go to Computer ⇧⌘H Go to Home ⇧⌘D Go to Desktop ⇧⌘G Go to Folder… ⇧⌘F Search Selected Folder ⌘C Copy Path ⌘O Open ⌘[ Go Back ⌘] Go...
7 tags
SmartFolders
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...
4 tags
Search (and edit) bundle items by key equivalent
Here’s a great tip from Allan:
⌃⌘T to bring up the ‘Select bundle item’ dialog. By default, you can search by bundle item title, but if you hit ⌘4, you can switch to key equivalent—meaning you can just type the shortcut to find its bundle item.
For instance, if you’d like to find the Comment Line/Selection bundle item, you can use: ⌃⌘T + ⌘4 + ⌘/.
To then edit the bundle item, hit ⌥↩. Allan...
Quickly show a menu of past search terms
(From the built-in help)
Find History
Just like clipboard history: ⌃⌥⌘F.
(While we’re at it: ⌃⌥⌘V = brings up a menu of your past clipboard contents)
1 tag
TextMate Blog » Locating Bundles →
Jump to specific lines/columns from ‘Go To File’...
In the ⌘+T (Go To File) dialog, you can append :line or :line:column when specifying a file to jump to. This is particularly useful for console errors that return line/column positions in long blocks of code.
Thanks to Joachim Mårtensson for this tip!
3 tags
TextMate 2 .tm_properties — Gist →
More documentation of .tm_properties, showing among other things the ability to set preferences based on file type.
3 tags
List of settings
A list of settings for your .tm_properties file, and some explanation, from a pastie posted by Allan Odgaard
# List of Settings ## I/O * `binary` — If set for a file, file browser will open it with external program when double clicked. Mainly makes sense when targetting specific globs. * `encoding` — Set to the file’s encoding. This will be used during save but is also fallback during load (when...
4 tags
Git status in file browser
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.
TextMate Blog » Alpha Tidbits →
1 tag
TextMate 2 + rmate = Awesome →
I heard TextMate 2 will be released tomorrow and decided to try it out. One really cool thing that was added to TM2 is the rmate script. This is a nifty little script that will let you edit files on a remote server through your running instance of TextMate 2. Here’s how to get it working using SSH tunneling.
1 tag
Converting themes
Themes have changed from being stand-alone files to being integrated into bundles. There are some included in TextMate and several more available in the bundle pane of Preferences, you can click the word Theme in the top bar to only show the themes.
To convert an old theme to the bundle format you can perform the following steps:
Create a new empty bundle in TextMate by going to the bundle...
1 tag
Create a .tm_properties file to set preferences
Here are a few handy rules you can put in your .tm_properties file:
TM_GIT = "/usr/local/bin/git"
excludeFiles = "*.{so,pyc,o,scssc}"
excludeDirectories = "build,dist,tmp,log"
# show the path to the current tab's file in the window title
# (replace the 2 instances of 'username' in the string below
# with your mac username).
windowTitle =...
1 tag
2 tags
1 tag
First Post
We have been waiting forever for Textmate 2. Now that it’s here in alpha it’s been hard to figure out how all the feature fit together.
As we get to learn about what’s new with Textmate 2, we’ll be posting tips and discoveries here.