Ubiquitous Use of TextMate (Text Editor for Mac) in Cocoa Applications

textmate icon

One of my favorite things about TextMate and one the things that keeps bringing be back from Vim is how well it integrates with OSX. One example of this is the “Edit in TextMate” InputManager. To get it to work go to Bundles –> TextMate –> Install “Edit in TextMate”… If you’re on Tiger you’re done just restart the apps you want to use this with (Cocoa apps only, so Mail.app, Safari and so on.) However for Leopard users Apple has made this a little bit more difficult but still doable. Here’s how:

# Remove old version
rm ~/Library/InputManagers/Edit\ in\ TextMate

# Create InputManagers folder
sudo mkdir /Library/InputManagers

# Copy the input manager to /Library
sudo cp -pR /Applications/TextMate.app/Contents/Resources/Edit\ in\ TextMate /Library/InputManagers

# Ensure everything is owned by root
sudo chown -R root:admin /Library/InputManagers
[ Via: TextMate Blog]

And you’re done. Restart the apps you want to use this, go to a text field and press Control-Command-E and it will open up TextMate. Edit the text, save it and you’ll see the original text magically change.

Here’s a video showing it off:


edit in textmate video

Click on the picture and pay close attention the commands I’m using that are shown in the bottom right of the video.


 
 

5 Responses to “Ubiquitous Use of TextMate (Text Editor for Mac) in Cocoa Applications”

  1. 4Avatars
    Morgan Daly
    Cool tip, but i really want to know where the desktop picture in your video came from?

    Thanks

  2. Morgan - I've checked around and I can't find it anywhere on the web and I deleted it a while ago on my computer so it's probably in some temporary folder but I can't find it.

  3. 4Avatars
    Morgan Daly
    Thanks.

    That desktop reference is a great idea and I might do one myself if I ever get the time. Be a good advertising tool for anyone. Like giving away calendars with your logo on them.


  4. Trackback
    Edit in MacVim for Ubiquitous use in Cocoa Applications - MacTips

    [...] group the vim_mac Google Group got MacVim’s own version of Edit in TextMate (see this post) working. To [...]


  5. 4Avatars
    Curious
    Thanks. Great information and explained very well.

Post a comment to "Ubiquitous Use of TextMate (Text Editor for Mac) in Cocoa Applications"



Support MacTips

MacTips Newsletter


Random Popular Tips

Recent Comments

Recent Discussions

MacTips Poll

What level of tips would you like to see?

View Results

Loading ... Loading ...

Friends of MacTips

Subscribe to MacTips

Site Links