Live data from Hacker News

Sublime text started adding a “.s” to new files

forum.sublimetext.com

11–20 of 138 posts

Re: Sublime text started adding a “.s” to new files

#11
apple also failed at using autocorrect for emoji.

Type: "sorry I was late. I ran" and you want to put :sweat: but I assume you want :running:

Put "I hope tomorrow is sunny" and want :pray: but it puts :sun:

I guesses wrong 4 out of 5 times for me and ab unpredictable ux is a shit ux

Re: Sublime text started adding a “.s” to new files

#12
post #11

apple also failed at using autocorrect for emoji. Type: "sorry I was late. I ran" and you want to put :sweat: but I assume you want :running: Put "I hope tomorrow is sunny" and want :pray: but it puts :sun: I guesses wrong 4 out of 5 times for me and ab unpredictable ux is a shit ux

Obviously this is only two datapoints, but it seems like it's overweighting the last word instead of basing it off of the full content

Re: Sublime text started adding a “.s” to new files

#13

I don't understand. What adding ".s" to the file name is supposed to correct?

It's some sort of bug around saving "non-standard" extensions. And it seems to grab as many of the original characters as it can that match a known extension, so `test.foo` becomes `test.foo.f`, `test.solo` becomes `test.solo.s`, but `test.executive` becomes `test.executive.exe`, and `test.asm` becomes `test.as`

And it affects their code that they run to validate when you change an extension. Normally if you open a file with an extension already (like say `test.txt`) and try to save it with a new extension (like `test.asm`), it prompts you asking something like "you've entered the extension ".asm" but the standard extension for this file type is ".txt" and gives you the options to change to the original extension or use the one you typed. If you try to change `test.txt` to `test.asm` with this bug, it tells you you've entered the ".as" extension, and not ".asm" like you actually entered.

Re: Sublime text started adding a “.s” to new files

#14
post #11

apple also failed at using autocorrect for emoji. Type: "sorry I was late. I ran" and you want to put :sweat: but I assume you want :running: Put "I hope tomorrow is sunny" and want :pray: but it puts :sun: I guesses wrong 4 out of 5 times for me and ab unpredictable ux is a shit ux

It’s actually not _predicting_ what emoji you want. There’s aliases assigned to each emoji and you are presented with the options based on the last word you typed.

You might know this already, but how Apple has coded it is it’ll replace the last word with an emoji unless you put a trailing space. But if you put down a space first it’ll add the emoji. So in your examples you would write “I hope tomorrow is sunny pray” and choose the emoji and it will be “I hope tomorrow is sunny :pray:”

Re: Sublime text started adding a “.s” to new files

#16
post #7

My guess, having never used OSX: 1. In the save dialog, filetype can determined in multiple ways (maybe selected from a dropdown, or be set by the program opening the dialog) and not necessarily just inferred from user-entered filename 2. So when returning the path to the program, it appends the filetype's extension to the path iff it doesn't already end in it (so user can enter just `notes` and file gets saved as `n…

Good guess! This has always seemed like a tricky edge-case-ridden feature, so I’m not super surprised it eventually broke. I mean, this is the kind of thing that should be covered by automated tests, but who knows what’s going on internally…

Personally, I’m putting good money on someone “fixing” some regex constant while doing another bug by either disabling full-match or taking off the “useless” $ at the end. This is why you don’t do unrelated fixes!! Otherwise, I don’t see any way this would get past ticket review as an intentional change in any half-awake dev team.

Re: Sublime text started adding a “.s” to new files

#17
post #12
post #11

apple also failed at using autocorrect for emoji. Type: "sorry I was late. I ran" and you want to put :sweat: but I assume you want :running: Put "I hope tomorrow is sunny" and want :pray: but it puts :sun: I guesses wrong 4 out of 5 times for me and ab unpredictable ux is a shit ux

Obviously this is only two datapoints, but it seems like it's overweighting the last word instead of basing it off of the full content

I don't think it's actually auto-correcting, it's offering an emoji option in the word suggestions that matches your last typed word (if there is one) and allows you to select it to replace the previously typed word. As far as I know it doesn't auto-replace anything you typed with an emoji with the exception of the old basic smileys.

Re: Sublime text started adding a “.s” to new files

#18
post #6

I don't understand. What adding ".s" to the file name is supposed to correct?

I'm not convinced it's ".s". Of the two examples (2nd is the GitHub link in TFA), both file name extensions start with "s". Ergo, the OS dialog is doing file_name_extension.substring(0,1), perhaps? Still on Sonoma, or I would answer this question myself.

Wise, it seems! Surprising to see no one think that maybe their recent OS upgrade would be at fault. Hindsight is 20/20 I guess, and at least they were nice about pushing the subject;

  This is what happens. I'm sorry you can't reproduce it. Are you using mac for this?

Re: Sublime text started adding a “.s” to new files

#19
I've recently come across a spectacular number of regressions on my M3 Max MacBook Pro, Sequoia as well as previous versions included.

The most workflow breaking one (which really tempts me to throw the computer out of the closest window I can find in the room) is a Safari bug that basically randomly fails to open any website with a

> Safari can't open the page. The error is: "The operation couldn't be completed. No space left on device" (NSPOSIXErrorDomain:28).

Which is embarrassing, as this is a clear regression and it breaks all functionality in the browser - restarting it doesn't fix it, and I need to restart the whole machine for it to _maybe_ get fixed (and it's not really a space issue, both RAM and disk I'm nowhere near their limits).

Post reply on HN