Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?
share|improve this question
up vote 1 down vote accepted

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

The buttons in the box map to the same options under Edit > Find, so you can use those key shortcuts. So the Replace & Find button is +Control+F, etc. You can also use some of the other selection items in Edit > Find. For example, if you have a word highlighted, you can use +E to use that word as search text, and then +G to walk through occurrences of that word. You can also selected another word to use as replace text with +Shift+E, then step through the occurrences (using +G) and use Replace All in Selection (+Shift+Control+F) to replace. All these shortcuts are listed in Edit > Find for easy references.

when I close a file that I don't want to save, how can I choose don't save without touching the mouse?

You can press +D as a shortcut for "Don't Save". Incidentally, this works in almost every document-based application on Mac OS X -- not just TextMate.

share|improve this answer

Well, I was typing exactly that but mipadi did it faster, however I’d like to add that the correct way to find and replace would be:

cmd+f

Type the word you want to replace, press tab, type the new word and then ctrl+cmd+f will perform a “Replace All”.

Of course, minipadi’s solution works without bringing the Find dialog at all, which is, often preferred.

As for the second question, cmd+d is for any save dialog (at least in Cocoa applications).

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .