Skip to content
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

Select each matched pattern after creating cursors #117

Open
ngharrison opened this issue Mar 10, 2021 · 0 comments
Open

Select each matched pattern after creating cursors #117

ngharrison opened this issue Mar 10, 2021 · 0 comments

Comments

@ngharrison
Copy link

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:

  • How are visual selections created for all cursors?
  • Would the selection need to be created after each cursor or could it be done in one go at the end?
  • Are there any known obstacles to implementing this?

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant