-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
append on empty line is wrong #1377
Comments
This is intended behavior. In helix your cursor can be placed on the new line character which is happening in this case and after pressing The background is cursor highlight, nothing wrong there I think. |
yea, but I don't get why there is so called "highlight" (because when i insert with i the background is clean as it should be) |
I just ran into this today via Example with a new file where I find it unintuitive: 2022-01-25.at.15.48.19.-.Alacritty.-.CleanShot.mp4 |
I also find annoying the append behaviour, in my case I'm used to create a new line explicitly if I want it with |
Same applies to
Maybe let the user disable placing the cursor on the eol character in the config? |
I also find the highlighting annoying after |
will it ever be fixed? |
As matoous says, this is intentional behavior. You're on a line-ending character so append will insert text after the line-ending - on the next line. The behavior you're looking for is most closely emulated by Whether your cursor is on a line-ending or not is more clear if you enable visible whitespace. You can do so just for newlines: # ~/.config/helix/config.toml
[editor]
whitespace.render.newline = "all" |
This is cool, but this prevents me to get into Helix/Kakoune. Is there will be any setting for this behaviour? Edit: I got into Helix for my daily use. :) This stills a bit weird to me, but I get used with it. |
Hello all, I'm running into this issue too because of unintuitive behaviour. I'm new to the editor as well, so I might be the stubborn one. If i:
... what then happens is that some text is added to the end of the current line (before newline) while on the empty lines, the text is inserted before the next line. It's not consistent, or "gl" (goto line end) is not working as I'd be understanding. (the same counts for selecting the current line with X standing on an empty line: it selects 2 lines) I don't want to sound unthankful, helix' editing is a very consistent experience! thanks! EDIT: found out that capital A is the one I need. I'll remap the keys a bit. |
sorry to bump and old closed thread, but I wanted to ask nonetheless: would you be willing to review/accept a PR which implements behaviour such that pressing 'a' on a newline works like in vim? Of course: this behaviour would be behind a configuration flag. |
to reproduce:
background goes back to normal after you press Enter
The text was updated successfully, but these errors were encountered: