brenton-leighton / multiple-cursors.nvim

A multi-cursor plugin for Neovim that works in normal, insert/replace, or visual modes, and with almost every command
Apache License 2.0
248 stars 7 forks source link

Feat visual cursor word #31

Closed brenton-leighton closed 9 months ago

brenton-leighton commented 9 months ago

This merge replaces the command MultipleCursorsAddToWordUnderCursor with two commands: MultipleCursorsAddBySearch and MultipleCursorsAddBySearchV.

MultipleCursorsAddBySearch will add cursors by searching for the word under the cursor in normal mode, and by searching for the text of the visual area in visual mode.

MultipleCursorsAddBySearchV is identical to MultipleCursorsAddBySearch, except that it will limit the search to the previous visual area.