3 ms·
iTerm takes this approach with closing panes, and it’s an absolute life saver. When you close a terminal, it keeps the shell process running until you take some
by mistercow 2y ago
iTerm takes this approach with closing panes, and it’s an absolute life saver. When you close a terminal, it keeps the shell process running until you take some other action, or some timer runs out, and can fully restore it if you cmd-Z.
I really wish browsers would do the same with closing browser tabs.
Edit: To clarify, I mean that I wish browsers would actually keep the tab process running for a short while so that the entire state can be restored. I’m aware of “reopen tab”, but that doesn’t help you in most cases if you have a paragraph typed into a web app and accidentally close it.
- flo123456 2y agoAt least in Firefox you can restore a closed Tab with CTRL (or Cmd on Mac) + Shift + T.
- mistercow 2y agoYes, but that just reloads the tab and tries to repopulate input fields. The actual state of the tab is lost.
- lelanthran 2y ago> I really wish browsers would do the same with closing browser tabs. They do, though. Ctrl-Shift-T does it for me (FF).
- mistercow 2y agoThat reopens the page, but it doesn’t correctly preserve state. Browsers will typically try to restore things like input values, but all JS state is lost, which means most cases where you had actual work to restore don’t work.