Skip to content

Plain Text documents do not default to their proper file extension when saving #954

@MasterKale

Description

@MasterKale

When I create a brand new document (using Ctrl+N) I get a new document with Plain Text formatting pre-selected and as confirmed in the bottom-right corner. However, when I save the newly created document the Save As window defaults to All Files (.) so no file extension gets applied to the file. What happens is I type a filename and then hit Enter, which results in an extension-less file.

What's weird is that there IS a Plain Text filetype defined with the desired file extension (.txt). Unlike just about all of the other formatting options (the ones you see in the bottom-right menu), though, that filetype isn't selected by default.

I'm not sure if this is a package issue or not as I couldn't find a "Plain Text" package in the SublimeHQ Packages repo.

OS: Windows 8.1, Windows 10
Sublime: Build 3095 (but also with prior builds from about a year on to today)


Edit by @FichteFoll (2015-08-04)

Proposed solution: Add a new "None" syntax that has no file extensions set and pre-selects the All Files (*.*) file type in the save as dialog and make Plain Text behave like other syntaxes in regards to extension appending. Additionally, add a new setting that allows overriding the new file syntax.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions