Skip to content

Move docs into another window when another one closes #1620

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Jun 30, 2025

Fixes #721

For simplicity, when a second or subsequent window is closed its documents are now reopened in a remaining window. This is to ensure that the "opened-documents" setting contains all documents opened in the session and that no data is lost (even if unsaved by second window).

As a consequence of this, closing a second or subsequent window (with <Ctrl>Q or otherwise) only closes the focused window.

More complex solutions are possible, such as having multiple lists of documents in settings and restoring all the windows but refinements can be made in subsequent PRs, if required, once the correct behaviour has been decided.

NOTE: Restarting or closing down the system still causes unsaved data to be lost as in 'master'.

@jeremypw jeremypw added this to the 8.1 milestone Jun 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ctrl+Q closes second windows with loss of unsaved changes
1 participant