Skip to content
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

Change window exit command to 'confirm qa' #133

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Glirastes
Copy link

@Glirastes Glirastes commented Oct 25, 2024

Currently, when attempting to close Nvy through Windows (Close Button, Alt-F4, etc.), it sends the command qa to Neovim. This command works fine when there are no unsaved changes, but if there are, it is completely useless: it will neither cause vim to force the exit (as it should not) or cause it to ask the user if the changes should be saved (as it should). The command line will simply say 'Press ENTER or type command to continue', leaving the user actually one step further away from exiting the program, now having to press ENTER and then quitting through another method.
A better way would be to send confirm qa. This will cause Neovim to ask the user, whether the changes should be saved or not. The user can then press y, n or c for yes, no or cancel.
I think this is much more intuitive and convenient, but at least allows the user to actually exit through the window close event if there are unsaved changes. If there are no unsaved changes, Neovim will obviously exit the same way as with qa.

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.

1 participant