hlissner / evil-multiedit

Multiple cursors for evil-mode, based on iedit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to convert evil-anzu selection to evil-multiedit?

amosbird opened this issue · comments

Is it possible to convert evil-anzu selection to evil-multiedit?

Sorry for the delayed reply. This should be possible; I will look into it. For the time being, evil-multiedit has an ex command interface, evil-multiedit-ex-match. If you are using evil-multiedit's default keybindings, this should be bound to :ie[dit], and accepts a regexp. e.g.

:iedit a[bc]

If you aren't using the default keybinds, you can bind the command with:

(evil-ex-define-cmd "ie[dit]" #'evil-multiedit-ex-match)

This works in doom :)

(defun anzu-to-multiedit ()
  (interactive)
  (+evil|disable-highlights)
  (evil-multiedit-ex-match (point-min) (point-max) nil (car evil-ex-search-pattern)))