Sublime text started adding a ".s" to new files. Very annoying
Maybe check, whether "default_extension"
setting. If specified all new files would use its value as file extension.
@deathaxe I tried that, didnāt do anything.
So if I create a file called āaā, it saves as āaā normally. If I create a file called āa.scrollā it saves as āa.scroll.sā
Going off https://github.com/zed-industries/zed/issues/16969 itās a āfeatureā Apple added that auto-corrects file extensions. Since this is a native dialog and affects all applications I donāt think thereās anything we can do here.
Wow. Crazy. Thanks @bschaaf for looking into this! Iāll try to escalate to Apple and get this fixed fast.
Landed here via https://news.ycombinator.com/item?id=41618926
Just to add, Iām seeing the exact same thing but had not gotten around to submitting any bug reports.
But itās reproducible in ST and VSC.
If I create a new file called āfoo.html.hamlā, the system will append .h to the file!
Why on earth would Apple add a āfeatureā like this!
Can confirm I can reliably reproduce this on macOS 15.0 (24A335) with Sublime Text 4180.
Repro steps:
- Make new file (cmd+n)
- Save file (cmd+s)
- Enter filename e.g. bar.foo
Expected: to have a file named bar.foo saved
Actual result: I have a file named bar.foo.f saved
It appears that the save dialog is taking the first character of the word after the period and using that as an āautomaticā extension for non-registered filetypes. i.e. .foo -> .f
This does not happen with āknownā filetypes such as .c, .cpp, etc.
I donāt work with .scroll files but I was also able to repro following the same process as OPs video.
This is with all autocorrect, etc. settings disabled fwiw.
The same behaviour also happens with Visual Studio Code and with macOS TextEdit
As seen in the screenshot below this is using TextEdit to save a file called bar.foo. As the bar.foo.f file saved by Sublime Text is already present it is asking me to replace it and as you can see it has added the .f extension itself so I think it is safe to say this is not a Sublime Text bug but a macOS one.
For me it seems that macos is more like trying to find a known file ending that fits the best, instead of just taking the first character.
For example test.txtx
is changed to test.txtx.txt
I have the similar problem saving .md (markdown files). I try to save README.md and it saves as README.md.m
and text isnāt highlighed as usually in Markdown
Iām on Mac Sequoia 15.0
Iām sure Apple is aware of this, but I have filed my own report (https://feedbackassistant.apple.com/feedback/15301291), it doesnt seem like they have public bug reporting, but putting that link for my own future reference to keep an eye on this. If they update my issue, Iāll report back here.
bug report via feedback app, now says āPotential fix identified - For a future OS updateā
After upgrading to macOs15, sublime text has performance problems