Stop BBEdit from adding .txt extension to default file name when saving

515 views
Skip to first unread message

John Siracusa

unread,
Jan 5, 2012, 2:07:23 PM1/5/12
to bbe...@googlegroups.com
When I create a new document and then try to save it, the suggested
file name is something like "untitled text 1.txt" with everything but
the ".txt" selected. Is there a way to stop BBEdit from adding the
".txt" part of the suggested file name? That is, I'd like the
suggested file name to be something like "untitled 1" with the entire
thing selected and no ".txt" in sight. Thanks.

-John

Jean-Baptiste

unread,
Jan 5, 2012, 2:39:50 PM1/5/12
to bbe...@googlegroups.com
It has to be possible because your desired behavior is the default one for me (i.e. 'untitled text' being selected).

Using BBEdit 10.1 (3110)

--
Jean-Baptiste

> --
> You received this message because you are subscribed to the
> "BBEdit Talk" discussion group on Google Groups.
> To post to this group, send email to bbe...@googlegroups.com (mailto:bbe...@googlegroups.com)
> To unsubscribe from this group, send email to
> bbedit+un...@googlegroups.com (mailto:bbedit+un...@googlegroups.com)
> For more options, visit this group at
> <http://groups.google.com/group/bbedit?hl=en>
> If you have a feature request or would like to report a problem,
> please email "sup...@barebones.com (mailto:sup...@barebones.com)" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

John Siracusa

unread,
Jan 5, 2012, 2:46:05 PM1/5/12
to bbe...@googlegroups.com
On Thu, Jan 5, 2012 at 2:39 PM, Jean-Baptiste <karageu...@gmail.com> wrote:
> It has to be possible because your desired behavior is the default one for me (i.e. 'untitled text' being selected).
>
> Using BBEdit 10.1 (3110)

Hm, maybe that's it. I'm using 10.1.1 (3127)

-John

Tom Robinson

unread,
Jan 5, 2012, 5:18:35 PM1/5/12
to bbe...@googlegroups.com
Adding extensions came in 3117. Given OS X is all but forcing them on us (sigh), personally I like BBEdit's change. You can adjust according to taste though:

> Changes
> -------
>
> * [211621] BBEdit now makes a reasonable guess at a filename
> extension when using "Save As" for a new document.
>
> Language modules can specify a "`BBLMPreferredFilenameExtension`" key,
> with a string value. This will be used if necessary. If it is
> absent, the first item in the BBLMSuffixMap array is used.
>
> You can also use an expert preference to set the preferred extension
> on a per-language basis:
>
> `defaults write com.barebones.bbedit PreferredFilenameExtension_<LanguageName> -string "abc"`
>
> Replace `<LanguageName>` with the actual language name; for example:
>
> `defaults write com.barebones.bbedit PreferredFilenameExtension_C++ -string "cxx"`
> `defaults write com.barebones.bbedit PreferredFilenameExtension_YAML -string "yaml"`
>
> Note that the extension you specify should *not* include the leading period.

Sent from my iPad

Reply all
Reply to author
Forward
0 new messages