Mac OS X keystrokes that I use fairly often, but can’t seem to remember.
I finally dug into a problem with TextMate that has been driving me crazy. I always have the TextMate "soft tabs" feature enabled, and want two spaces wherever there was a tab. However, it turns out TextMate doesn't really do what I expect here. Instead of automatically converting tabs to spaces, you have to take an extra step to make this work.
Assume you've just opened an existing document. To convert the tabs in the document to spaces (soft tabs):
vim tabs/spaces FAQ: How do I convert vi/vim tabs to spaces?
You can convert tabs to spaces in vim using the usual vim search and replace command. Specifically, this vim "tabs to spaces" command is all you need:
In short, this command can be read like this:
Just poking around the internet, I see that Google is providing an "early release" of the Chrome browser for Mac OS X. They have several warnings about privacy concerns, but if you'd like to see what's coming, it might be worth a look. I just took it for a spin, and while it seems pretty basic, it didn't crash, and it seems pretty quick.
vi/vim question: How do I convert all occurrences of
XYZ in a file using the vi/vim editor?
Answer: This is actually easy to do with the vi or vim editor. Just go into "last line mode" by typing the ":" character, then enter a command like this to replace all occurrences of the string
ABC with the string
Well, I set out to write a simple tip on how to activate a Mac application using AppleScript, and I ended up writing a program to open a list of URLs in separate tabs in Safari using AppleScript. (Yeesh, I really took a detour. Oh, well.)
Without any further ado, here's the source code for this AppleScript program: