News for hackers. Stuff that matters.
Re:NotepadNext – a cross-platform reimplementation of Notepad++ by publius_0xf3 on Thursday March 28, 2024 @02:21PM (#39855488)
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.

Re:NotepadNext – a cross-platform reimplementation of Notepad++ by jraph on Thursday March 28, 2024 @02:59PM (#39855945)
Kate can restore sessions, not sure it can auto save on close. Ctrl+L saves all but Kate will ask for still unnamed files.
Re:NotepadNext – a cross-platform reimplementation of Notepad++ by tentacleuno on Thursday March 28, 2024 @03:04PM (#39856003)
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?
Re:NotepadNext – a cross-platform reimplementation of Notepad++ by jraph on Thursday March 28, 2024 @03:19PM (#39856175)
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 :-)
Re:NotepadNext – a cross-platform reimplementation of Notepad++ by jraph on Tuesday April 02, 2024 @08:53AM (#39905174)
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 :-)

Re:NotepadNext – a cross-platform reimplementation of Notepad++ by tentacleuno on Thursday March 28, 2024 @02:38PM (#39855700)
I'm very glad others have come to expect this feature, too; I assumed it was another of my weird, niche workflows :-)
Re:NotepadNext – a cross-platform reimplementation of Notepad++ by kzrdude on Thursday March 28, 2024 @07:10PM (#39858561)
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.
Re:NotepadNext – a cross-platform reimplementation of Notepad++ by mikae1 on Thursday March 28, 2024 @07:32PM (#39858748)
> 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.

Re:NotepadNext – a cross-platform reimplementation of Notepad++ by kevincox on Friday March 29, 2024 @07:27AM (#39862757)
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.)