views:

78

answers:

2

Ok, maybe they're system shortcuts. I've googled (just a bit) and couldn't find an answer. Maybe there isn't any :) Still..

I love keyboard and I use quite a few in TextMate but just realise I still use the mouse for 2 of the most common actions:

  • How do I press search and replace after the S/R dialog box is up? - if you press enter it just takes you to the next occurrence of the search string
  • when I close a file that I don't want to save, how can I choose don't save without touching the mouse?
+1  A: 

The search and replace (actually it's called "Replace & Find") shortcut is alt-cmd-f and works both inside the Find dialog and without it. With using other shortcuts like cmd-f, shift-cmd-f, cmd-G you can perform most of the search/replace actions without even opening the dialog. For example, if you want to perform the substitution, you press alt-cmd-f, then another is highlighted and if you want to skip it, it's cmd-G, which finds yet another, and so on.

As for the second question, I think it's a general Mac OS X issue -- the message boxes buttons don't have keyboard shortcuts in other apps, too. When I first switched from Windows, this annoyed me but I got used to it by now.

szeryf
thanks!I have figured out the second question (not by myself, I've asked the same on superuser :)it's **⌘+D** as in don't save, and it's system wide. And that helps :)
pax
pax
+1  A: 

To select Don't Save from the keyboard, you can use the keyboard shortcut +D. (This works in most OS X apps, not just TextMate.)

mipadi