Hacker News new | ask | show | jobs
by publius_0xf3 806 days ago
Occasionally, someone will submit their new text editor to Hacker News and the first thing I do is check if it quietly saves sessions upon closure.

It's amazing how many people don't bother implementing this indispensable feature.

5 comments

> It's amazing how many people don't bother implementing this indispensable feature.

BBEdit is almost bizarrely bulletproof in this regard. I never, in a decade, lost a single note. To me, this is probably the most overlooked and important feature in a text editor.

I switched to Plasma/Linux a few years ago and have since learned that Kate is not as robust.

Must try Notepad Next.

It's always amazing how someone's "indispensible feature" is something that someone else couldn't care less about.

I don't even really use the concept of open files. I mostly switch files using a fuzzy finder that lists files in the git repo. So what files are "open" in my session is irrelevant to my workflow. (Unless they have unsaved changes of course, but I basically always just use "Save All" so even that state is minimal.)

I'm very glad others have come to expect this feature, too; I assumed it was another of my weird, niche workflows :-)
Kate can restore sessions, not sure it can auto save on close. Ctrl+L saves all but Kate will ask for still unnamed files.
I haven't been able to get it to act like Notepad++, wherein it doesn't ask you to save on quit. Perhaps there's a configuration option I've missed?
I'll look for it but I'm not sure I've ever seen it despite having seen the settings countless times. If it doesn't exist it could be an easy and useful contribution :-)
So, we actually have "Enable auto save (for local files only)" section, and two options:

- an "Auto save document when the active document is losing focus"

- Auto save interval

So I guess we are already covered :-)

Vim had this feature for years. But it took until I tested lazyvim (neovim distribution of plugins) that makes session restore so easily accessible, that I now rely on it.