-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
write-quit-all will write files without any changes #1760
Labels
Comments
This was fixed as a by-product of: #1444. |
Indeed. Thanks! |
zqianem
added a commit
to zqianem/helix
that referenced
this issue
Sep 3, 2023
This resolves helix-editor#4274 with the implementation largely based off of helix-editor#5435 and also addresses the review from @the-mikedavis on that PR. The option name is from EditorConfig's `insert_final_newline`, which is also used by VS Code as `files.insertFinalNewline`. We match Vim's behavior in that :w will add the newline to unmodified files but :wa will not; see helix-editor#1760. Co-authored by: Xalfer <[email protected]>
zqianem
added a commit
to zqianem/helix
that referenced
this issue
Sep 3, 2023
This resolves helix-editor#4274 with the implementation largely based off of helix-editor#5435 and also addresses the review from @the-mikedavis on that PR. The option name is from EditorConfig's `insert_final_newline`, which is also used by VS Code as `files.insertFinalNewline`. We match Vim's behavior in that :w will add the newline to unmodified files but :wa will not; see helix-editor#1760. Co-authored-by: Xalfer <[email protected]>
zqianem
added a commit
to zqianem/helix
that referenced
this issue
Sep 3, 2023
This resolves helix-editor#4274 with the implementation largely based off of helix-editor#5435 and also addresses the review from @the-mikedavis on that PR. The option name is from EditorConfig's `insert_final_newline`, which is also used by VS Code as `files.insertFinalNewline`. We match Vim's behavior in that :w will add the newline to unmodified files but :wa will not; see helix-editor#1760. Tests are included for this. Co-authored-by: Xalfer <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduction steps
helix new_file
.:write-quit-all
.The file will be created while I would expect the file to not be created because no changes were made (vim's behavior).
I believe the file should not be created because that's convenient to users that have a mapping to
:write-quit-all
.Using
:write
alone should probably still create the file though (vim's behavior).Environment
~/.cache/helix/helix.log
Nothing
The text was updated successfully, but these errors were encountered: