gabesoft / evil-mc

Multiple cursors implementation for evil-mode
MIT License
383 stars 35 forks source link

Select each matched pattern after creating cursors #117

Open ngharrison opened 3 years ago

ngharrison commented 3 years ago

When I create multiple cursors, it is most often to perform some commands on a section of text that is common in multiple places. When evil-mc makes its cursors, it drops any visual selection after they are made. This results in me selecting my text, making the cursors, and then re-selecting the text again to finally operate on it. The information is already in the pattern it used to match each occurrence, so how could I make it maintain visual selections after cursor creation?

If you know a quick fix for this, great! I am also willing to implement this myself, but I would need some direction with the internals of evil-mc. Some specific things I can think of now:

Some idea of the evil-mc-specific variables and functions that relate to this problem would be super helpful.