Better tab & window management
Tried searching for previous issues, but could not find any. Keywords: profiles, save/restore tabs, sessions.
Affected version
- Nightly flatpak: (Yes) / No / Can't test it because
Use cases
Once booting the entire computer, or after a simple application closure or crash, re-open the application to see the previous session's windows and tabs. The behavior should resemble the FireFox web browser, with its capabilities and restrictions. An example of an expected design limitation may be losing 1 of many windows with any number of tabs when it is only closed, and later the entire application quits. This is better supported with an available re-open window action, like the one that exists for tabs already.
This could work by utilizing another new feature of profiles, similar to what is implemented in iTerm2 for Apple/Macintosh computers, and GNOME Terminal.
Other examples would be Apple's Finder, Windows third-party software application Explorer++, and the Atom and Sublime text editors / IDEs.
With this feature, I would also expect the window positions and sizes to be persisted across the application's execution/lifecycle.
Lastly, to avoid creating at least more complex workarounds, supportive scripts, like the one I had found and link here, I would expect an easier pathway to recreate this functionality from a similar external source, or also for plain convenience, to have more CLI options to control the currently open program. I believe Atom and Sublime Text have this, at least on non-Linux platforms.
Available features and workarounds
Moved to the difficulties section with my system upgrade to Fedora 36 now.
I can re-use the existing configuration from that supporting script more manually by first retrieving the entries using this command string:
js-yaml ~/.local/share/nautilus/tabs | jq -r '.[][0]'
Difficulties and insufficiencies
Just with my switch to F36 using Wayland instead of X11, this supportive script no longer seems to work: GitHub - susurri/nautilus_save_tabs - If xdotool is a requirement I infer this project won't work on Wayland.
Strange that in the same OS GUI environment, I can activate the script, and see positive results in Atom.
Suggested enhancements
Project planning, programming, and documenting?