What does HackerNews think of tmux-resurrect?
Persists tmux environment across system restarts.
https://github.com/tmux-plugins/tmux-resurrect https://github.com/tmux-plugins/tmux-continuum
FWIW, this is available in tmux as a plugin. Very convenient and highly recommended.
https://github.com/tmux-plugins/tmux-resurrect
I haven't tried Zellij, but it looks interesting. This is a great feature, and I think incorporating it into the base software reflects good UX priorities.
You may want to have a look at Tmux resurrect[0]
Google brings [1] but I haven't tried it yet.
I am aware that this doesn't really help you as your question seems to suggest you are not using an editor that can be run in the terminal.
Have you tried this tmux plugin? https://github.com/tmux-plugins/tmux-resurrect I use it all the time at work and at home
Using mosh + tmux allows you to have both a) state persisted on the remote side, and b) automatic reconnects if your internet drops, or if you change connections. It's a very good combination, if you can handle some of the drawbacks of mosh (no in-terminal scrolling, mostly, but you can outsource that to tmux as well at the cost of a little lag).
A good additional piece of the puzzle is tmux-resurrect [1], which saves and automatically restores a lot of your tmux state to the filesystem so it's proof against power loss and system restarts/relogins. It persists window arrangements and similar, though it obviously can't save everything--the state of programs that were open can't be programmatically preserved (though that's getting closer and closer to seamless with the advent of things like CRIU).
The combination of mosh + tmux + tmux-resurrect is a very popular one and creates a very resilient system for "don't make me think; just log me in to my usual environment"-type systems, or environments where internet connectivity is spotty or the tmux server environment is unreliable or prone to rebooting.
It's not as configurable, but doesn't really need much configuration.
> Does tmux persist sessions after restarts?
I suggest mentioning tmux-resurrect: https://github.com/tmux-plugins/tmux-resurrect as this has made me far less grumpy about restarting a machine with many active tmux sessions. Save/Reload all your sessions, windows, panes, and layouts with a single shortcut key.
[1]: https://github.com/tmux-plugins/tmux-resurrect [2]: https://github.com/tmux-plugins/tmux-continuum
Tmux supports tabs and dynamic splits nicely via ncurses.
Also check out tmux ressurect [1] for saving tmux session persistence.