Ask Different is a question and answer site for power users of Apple hardware and software. 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

How do I get textmate to remember what project i had open last and reopen it automatically?

Right now I have to select it from the menu.

share|improve this question
not working for me also... Tried both: defaults write com.macromates.textmate NSQuitAlwaysKeepsWindows -bool NO defaults write com.macromates.textmate OakDisableSessionRestore 0 Nothing seemed to get previous projects and files to open. Very frustrating. – user28478 Sep 3 '12 at 5:57
up vote 4 down vote accepted

By default TextMate should open the last open project or document - but it can be switched on/off - maybe it is off by you ??

Here is how to switch the feature on/off:

22.7 OakDisableSessionRestore

When you launch TextMate it will open the project / document which was open when you last exited. You can however disable this feature by running:

defaults write com.macromates.textmate OakDisableSessionRestore 1

This means that you should run the above line in a Terminal - with a 0 instead of 1

share|improve this answer
Strange, totally not working for me, though this appears to be the "right" answer. – Eric Apr 9 '12 at 23:13

This command allowed me to re-open a project (I'm running Mountain Lion):

    defaults write com.macromates.textmate NSQuitAlwaysKeepsWindows -bool NO

TextMate needs to be closed when you issue Terminal commands, otherwise they will not work.

See this page for more information.

Make sure you created a TextMate project using TextMate. In other words, do not drag a folder into TextMate and assume that all the open-file states to be reloaded. You must have a .tmproj file into which you drag your files into.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.