Integration with Evil
maximbaz opened this issue · 5 comments
With Evil installed:
- Press
/
to start incremental search. - Type "text" -> anzu will show
(1/5)
in mode line - Hit
Enter
to start searching, usen
andN
to navigate.
After you hit Enter
, anzu information disappears from the mode line. This is fine, because selection also disappears. But when you press n
or N
, selection reappears for a couple of seconds, and cursor moves to the next/previous match.
I expect anzu information also to appear for a couple of seconds after I press n
or N
.
Currently, anzu information does not appear after hitting n
or N
.
Maybe I am missing something obvious here?
I can see that vim-anzu
provides the following mappings
nmap n <Plug>(anzu-n-with-echo)
nmap N <Plug>(anzu-N-with-echo)
Is there a similar configuration to remap evil's n
and N
?
I'm not evil user and I don't understand evil well.
I'll check anzu with evil.
It is difficult to use current anzu with evil.
I implement evil-anzu
as prototype.
Code is here
Here is screencast of evil-anzu
.
I need to study more about evil.
@syohex, I've tried your prototype, it works quite nice! 👍
Are you considering to create a separate github repo for evil-anzu
? It would be nice to have a centralized place for feature suggestions, bug fixes, etc.
Ideally I'd love to install it with package manager, to receive future updates, if any 😄
UPDATE: However I realize that sometimes it will be difficult to determine, which repository to use for reporting an issue, since evil-anzu
is using anzu
. To put it correctly, I'm curious if you are considering moving the evil-anzu
code out of gist to github repo, either this or a new one.
I have one UX suggestion, check out the following use case:
This is something I would rather report as a separate issue, let me know if you want me to do that and which repo to use.
- Hit
/
and type some text -> number of matches is visible (OK)
- Hit
Enter
-> cursor moved to the first match, number of matches is not visible (OK)
- Hit
n
-> cursor moved to the next match, number of matches is visible (OK)
- Wait a couple of seconds, all matches stop being highlighted, but anzu still displays the number of matches (NOT OK)
I expect this counter to disappear as soon as highlighting drops.
Are you considering to create a separate github repo for evil-anzu?
Yes.
Thanks for information. I'll try to fix them.
I'm closing this issue since it has been fixed in emacs-evil-anzu repository.
Thanks again, @syohex!