hlissner / evil-snipe

2-char searching ala vim-sneak & vim-seek, for evil-mode
MIT License
336 stars 25 forks source link

evil-snipe-override doesn't work when first pressing f/F/t/T #66

Closed yunhao94 closed 3 years ago

yunhao94 commented 4 years ago

Environment

hlissner commented 4 years ago

This a general limitation of evil keymaps. Adding (evil-normalize-keymaps) to the end of your repro steps fixes the issue. It is necessary to call this function whenever a new minor mode keymap (with evil state keybinds) is defined, unfortunately.

I'll switch out evil-define-key* for evil-define-minor-mode-key (which was written to address this issue, iirc) and see if it addresses the problem well enough.

hlissner commented 3 years ago

Sorry for the tremendously late reply. 1f3ba0d should fix this issue.