-
-
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
Add insert-final-newline
config option
#8157
Merged
the-mikedavis
merged 6 commits into
helix-editor:master
from
zqianem:insert_final_newline
Sep 12, 2023
Merged
Add insert-final-newline
config option
#8157
the-mikedavis
merged 6 commits into
helix-editor:master
from
zqianem:insert_final_newline
Sep 12, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]>
Makes the failure message easier to read
More discoverable and consistent with rest of docs and codebase Co-authored-by: Michael Davis <[email protected]>
zqianem
force-pushed
the
insert_final_newline
branch
from
September 3, 2023 17:09
2d4c59a
to
4e7a86c
Compare
pascalkuthe
reviewed
Sep 10, 2023
pascalkuthe
added
E-easy
Call for participation: Experience needed to fix: Easy / not much
S-waiting-on-author
Status: This is awaiting some action (such as code changes or more information) from the author.
A-command
Area: Commands
C-enhancement
Category: Improvements
and removed
A-command
Area: Commands
labels
Sep 10, 2023
zqianem
force-pushed
the
insert_final_newline
branch
from
September 10, 2023 23:36
add769f
to
81c69f9
Compare
pascalkuthe
previously approved these changes
Sep 10, 2023
pascalkuthe
added
S-waiting-on-review
Status: Awaiting review from a maintainer.
and removed
S-waiting-on-author
Status: This is awaiting some action (such as code changes or more information) from the author.
labels
Sep 10, 2023
pascalkuthe
added
S-waiting-on-author
Status: This is awaiting some action (such as code changes or more information) from the author.
and removed
S-waiting-on-review
Status: Awaiting review from a maintainer.
labels
Sep 11, 2023
pascalkuthe
previously approved these changes
Sep 11, 2023
pascalkuthe
added
S-waiting-on-review
Status: Awaiting review from a maintainer.
and removed
S-waiting-on-author
Status: This is awaiting some action (such as code changes or more information) from the author.
labels
Sep 11, 2023
Oh I forgot to call |
Includes fixes for integration test failures cause by new default
zqianem
force-pushed
the
insert_final_newline
branch
from
September 11, 2023 23:18
a3675dd
to
453a486
Compare
pascalkuthe
approved these changes
Sep 11, 2023
the-mikedavis
approved these changes
Sep 12, 2023
dgkf
pushed a commit
to dgkf/helix
that referenced
this pull request
Jan 30, 2024
Co-authored-by: Xalfer <[email protected]>
mtoohey31
pushed a commit
to mtoohey31/helix
that referenced
this pull request
Jun 2, 2024
Co-authored-by: Xalfer <[email protected]>
smortime
pushed a commit
to smortime/helix
that referenced
this pull request
Jul 10, 2024
Co-authored-by: Xalfer <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-enhancement
Category: Improvements
E-easy
Call for participation: Experience needed to fix: Easy / not much
S-waiting-on-review
Status: Awaiting review from a maintainer.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This resolves #4274 with the implementation largely based off of #5435
and also addresses the review from @the-mikedavis on that PR.
The option name is from EditorConfig's
insert_final_newline
, which isalso 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 #1760. Tests are included for this.
Co-authored-by: Xalfer [email protected]