helix
helix copied to clipboard
Expand selection to whole word when pressing `*`
Closes #6045
This is an attempt at adding the functionality discussed in this issue (and earlier on matrix).
I'm open to suggestions, I've barely learned Rust, and it was a long time ago and seldom used it, so i'm very... rusty.
Please let me know if this is useful, relevant, and how it could be improved!
Thanks for the feedback, I've updated the keymap.md file accordingly 👍
nice improvement. going to test it locally. currently was using this config:
"*" = ["move_prev_word_start", "move_next_word_end", "search_selection", "global_search"]
I think it makes sense to encapsulate the word between \b to prevent overmatching
I believe Kakoune also adds \b in some cases with *. I think it would be a nice improvement to move our * closer to Kakoune's behavior - though that should be a follow-up PR