Undo Close Window

Use case or problem

I want to be able to reopen closed windows just like in a web browser (on firefox the shortcut is Ctrl + Shift + N).

Obsidian currently has an “Undo Close Tab” shortcut, but not an “Undo Close Window” shortcut.

Proposed solution

Provide a shortcut/option in command palette to “Undo Close Window” or “Reopen Last Closed Window” just like “Undo Close Tab” is an option.

1 Like

Yes, this! I want to flip tables when I accidentally close an obsidian window. It’s like someone deleting your desk with everything on it when you are in the middle of a project with everything carefully laid out. And then it’s a bit of a panic if you start hitting Ctrl+Shift+T because it’s opening other closed tabs. This is confusing, since the expectation (from other applications like web browsers) is Ctrl+Shift+T restores either the last closed tab or the last closed window, depending which was the most recent action.

My current process to restore closed windows:

  • close obsidian
  • find my last filesystem snapshot
  • either outright replace .obsidian/workspace.json, or if needed use meld as a diff/merge tool to add back the deleted sections (depending how recent the snapshot was).

I assume since this is so cleanly managed in workspace.json that it would be easy for the app to have this functionality.