Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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
add comment

2 Answers 2

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: http://manual.macromates.com/en/expert_preferences#oakdisablesessionrestore

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
add comment

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
add comment

Your Answer

 
discard

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.