-
-
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
Make * also select the word under the cursor #1762
Comments
Now that I think of it, perhaps we only need to have a command for the [keys.normal]
"*" = ["search", "insert_word", "submit_search"] What do you think? This seems more generic and would allow for instance creating a new shortcut to do the same for global search. However, we'd need a way to wrap the word with Now that I think of it, that would require many commands while issue #1383 would allow something like: "*" = "@/\b<C-s>\b<CR>" which seems much simpler. That wouldn't work as is, though, because the search is incremental. |
currently it's good to make it default select the word. |
This is really necessary! |
At the very least I would expect |
I ended up with this binding BTW that mostly emulates what I'm currently used to from vim: [keys.normal]
"*" = ["move_prev_word_start", "move_next_word_end", "search_selection", "search_next"] |
For the record, vim-star-sharp.mp4I'm guessing #5702 will also help here. |
Looks like this is being tackled in #6046 |
Describe your feature request
I would find it more convenient if
*
would also select the word under the cursor before doing a search.The search should also be on word boundary (wrapped with
\b
).That's the behavior of vim.
We can keep the current
search_selection
as it is, perhaps under another shortcut.The text was updated successfully, but these errors were encountered: