-
-
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
Inconsistency of commands behavior between "a" and "i" #1411
Comments
For 3, we may pull copy of selections in a new set of registers, e.g. I think both approach are valuable, so they might end up to be different commands? |
|
OK, I'll change title specifically to issue 1. |
How exactly should insert work if it extends the selection? Are you imagining something like this, where [] denotes the selection and | denotes the head:
If so, this would not work as the code is currently architected, as there are only two ends of a selection: the head and the anchor. The head of the selection is where text is inserted, so in order to continuously insert text to the left, the whole selection must move as well. |
@dead10ck I've think about your situations. That makes sense, but there are also situations you want it to include the selection. e.g. For now I'll just close this. Maybe these are not that important. |
Ah, so you're talking about inserting text to the right of the cursor. I do think that would be possible. So there could be insert to the left and right, and append to the left and right. This would also give the converse: appending to the right would keep the selection instead of extending. I could see that being a useful thing for some people. |
Reproduction Steps(for different issues)
a
extends the selection while insertioni
didn't, I think they both shouldin multi cursor mode,w
expands all cursors to words, whilex
collapse to one line, I think x should expands all cursors to lines.after copying multi selections, I can only paste one selection, maybe this one is because I don't know the keybinds though...pastep
is can not be multiplied by motions, e.g.4p
will not paste 4 times from clipboard.Environment
Linux arch 5.15.11-arch2-1 #1 SMP PREEMPT Wed, 22 Dec 2021 09:23:54 +0000 x86_64 GNU/Linux
helix 0.5.0
helix.log
is empty.The text was updated successfully, but these errors were encountered: