-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Fix wqa! message #14267
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
Fix wqa! message #14267
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
Thanks! Anyone else able to take a look so this can be landed please? |
helix-term/src/commands/typed.rs
Outdated
name: "write-quit-all!", | ||
aliases: &["wqa!", "xa!"], | ||
doc: "Write changes from all buffers to disk and close all views forcefully (ignoring unsaved changes).", | ||
doc: "Forcefully write changes from all buffers to disk, creating necessary subdirectories, and close all views.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
force_write_all_quit
also forcefully closes all views: both the write and the quit are forceful. For example if you open a scratch buffer and make changes without writing them to a file, :wqa
will not quit while :wqa!
will
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the original message is still a bit unclear in regards to changes being made in saved buffers being written forcefully. When I first read the message, I understood it as implying that changes are not saved forcefully. Maybe a new version could be: Forcefully write changes from all buffers to disk, creating necessary subdirectories, and close all views (ignoring unsaved changes).
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That sounds good to me 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 🙌 thanks for the feedback
Hi! I noticed that the message for the
:wqa!
command is contradictory. It states that we ignore unsaved changes, but the command actually forces everything to be saved. This is incorrect. This PR updates the message to make this clear.