hlissner / evil-multiedit

Multiple cursors for evil-mode, based on iedit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

kauesena opened this issue · comments

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

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.