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

match-and-next should match the first two occurrances when first used in visual mode #49

Open
kauesena opened this issue Apr 9, 2022 · 1 comment
Labels

Comments

@kauesena
Copy link

kauesena commented Apr 9, 2022

What did you expect to happen?

After selecting an expression using visual mode and pressing the keybinding for evil-multiedit-match-and-next, the function should understand that the user wants at leas to select the first and the next ocurrances.

What actually happened?

A instance of multiedit is created only for the ocurrance under the cursor.

Describe your attempts to resolve the issue

I tried to edit the function source but it was far more complex then I thought it would be.

Steps to reproduce

  1. Select a word in visual mode.
  2. Press the key binding for evil-multiedit-match-and-next.

Package commit

Package version: 1.4.3

System Information

5.17.1-arch1-1
GNU Emacs 28.09.91

@kauesena kauesena added the bug label Apr 9, 2022
@kauesena
Copy link
Author

kauesena commented Apr 9, 2022

I believe one would not use evil-multiedit-match-and-next when one desires to edit only the first occurrence of the expression. At least, it has never been the case for me and I do not see a reason why in such a case one would not edit the expression using simply evil mode.

Besides, I went to check what the behaviour was on Sublime Text where the whole multicursor editing began as far as I know, and confirmed the behaviour is what I expected: pressing ctrl-d having selected a word makes a cursor where you already were and at the next occurrence.

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

No branches or pull requests

1 participant