Question

I have a weird problem in Textmate 2 that I didn't experience before. I usually open TM2 on the command line by cd'ing into the project folder, then enter mate ..

Strangely, for one project, the "Project folder" now is not the one I do mate . in, but it's my home folder. This means that pressing Cmd-T searches my whole home folder now, not only my project folder. This is very embarassing, and I can't seem to change it. I quit TM2, etc., but this didn't help. Interestingly, on other folders, it's still the "old", expected behavior.

Any idea on how to change this?

Était-ce utile?

La solution

Find the folder you want to set as your Project Folder in the file browsing drawer View->Show File Browser. Use the menu button, it looks like a down arrow, select Use "[folder name]" as Project Folder.

screenshot of menu, with highlighted "Use __ as Project Folder"

Autres conseils

After adding a .tm_properties file in the project folder with the following content solved the problem for me.

projectDirectory = "$CWD"

This may not be a general fix for the problem, but at least on a per-project base it's working for me.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top