-
-
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
Implement Kakoune's A-S: Select first and last chars #9483
Conversation
A-S
: Select first and last chars
A-S
: Select first and last chars
I don't think this handles zero-size selections (only when doc is completely empty) or 1-wide selections. Might want to check the size first. |
Good catch - I'll do that now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should also be added to the book under selection manipulation: https://github.com/helix-editor/helix/blob/master/book/src/keymap.md#selection-manipulation
Okay just made the fixes. I believe that using the helpers also addressed the overflow issues that @kirawi mentioned. |
Added kakoune's A-S command Small formatting change Updated to use grapheme helpers Change to Range::point and fix keymap formatting
Fixes #9459