-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Using a count for a motion should select all text traversed #536
Comments
I have thought about this in the past. Both way seemed to work for me. |
I'm not sure I follow why that's undesirable. That's how most commands behave: the number prefix is simply a repeat count.
But isn't that what |
The Kakoune behavior could be described as "Always Be Selecting". 2w selects the next two words--the movement of the cursor is a side effect. I find that if the highlighted selection is too broad or want to reset it, I just click Space, and the anchor snaps back to the cursor in its current position (in Kakoune). When I use |
kak:
I think you can I also wondered if |
For what it's worth, I map I basically think of |
On second thought, I suppose the way it works now is actually fine. |
I realized I find this useful now, can we reopen it? I find myself pressing v way more than ;, almost had to press v every time, sometimes I know the count, I wish if I press the count it will select all the way from current position (not extending) so I can perform an action on this. The behavior will be similar to current |
I'd be willing to trial this if there's a branch somewhere I can pull down. |
@EpocSquadron there's #1570 open now. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Currently, using a count for a motion, such as
2w
will behave exactly the same selection-wise as pressingw
twice. I think this should be changed so that using a count for a motion will select the text traversed by all repetitions of the motion; so2w
will behave likev2w
. This would allow for operations like2wd
as a counterpart tod2w
in Vim.The text was updated successfully, but these errors were encountered: