[TxMt] Re: Default save path for New File

Carpii UK carpii.uk at gmail.com
Wed Jun 25 11:46:58 UTC 2014


Thanks Allan, this is really useful

I see its actually in the File menu, under New Tab. Not sure how I missed
that

Good tip about the default file type too :)


On 24 June 2014 13:21, Allan Odgaard <mailinglist at textmate.org> wrote:

> 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”.
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20140625/aac452ac/attachment.html>


More information about the textmate mailing list