[TxMt] Re: Default save path for New File
Allan Odgaard
mailinglist at textmate.org
Tue Jun 24 12:21:24 UTC 2014
On 24 Jun 2014, at 13:05, Carpii UK wrote:
> If I have a project open, and create a new file (CMD+N), I notice when
> I
> try to save it, it doesn't default to the projects directory. Is there
> a
> way to adjust this?
Using ⌘N will create a new window which isn’t attached to any
project.
Instead use ⌥⌘N to create a new (untitled) tab in the current
project. The default save path for this will be the project folder or,
if there is a file browser selection, the path for the selected item.
Hint: You can specify the default file type for new tabs, for example if
you mostly create HTML files then put this in the project’s
.tm_properties:
[ attr.untitled ]
fileType = 'text.html.basic'
> Im wondering if its somehow related to projectDirectory in
> .tm_properties?
> Most of mine are set to "$CWD" just because every example I saw uses
> that.
Not directly related, but you can probably remove all those settings
from your .tm_properties files.
TextMate (now) assigns a project folder automatically based on the first
folder you open. If you wish to change it, you can use the file
browser’s drop-down menu (at the top) to select “Use «folder» as
Project Folder”.
More information about the textmate
mailing list