iedit.nvim icon indicating copy to clipboard operation
iedit.nvim copied to clipboard

A way to circle through selected items

Open viocost opened this issue 1 year ago • 3 comments

Is there a way to circle through selected items while in iedit mode?

viocost avatar Jul 15 '24 10:07 viocost

Added it. (https://github.com/altermo/iedit.nvim/commit/7863c2f0615adcd9854ab03ef7b9e76e10be5e39) Use require"iedit"._goto_next(true) for now. (I want to refactor it later to be better, and that's the reason behind it being underscored.)

altermo avatar Jul 15 '24 15:07 altermo

Wow man, you are quick :)

I've started implementing it too, but I also added some logic to handle going back and forth, and utilizing "n" and "N" keys to trigger that.

It's quite a mess yet, but let me know if you like it, I can refine and merge it to your branch https://github.com/viocost/iedit.nvim/commit/d98af05a031649f955aac267325b1c02f4eac84e

viocost avatar Jul 15 '24 17:07 viocost

No need, I just added an argument for going backward. (https://github.com/altermo/iedit.nvim/commit/2d723616b507da8d9e99a5aa842e30defbf1f09f)

altermo avatar Jul 15 '24 18:07 altermo