Closed martinzk closed 4 years ago
I'm not sure how to fix this. It's turned off in deer, as it should be, but then turned back on again as part of post-command-hook
due to being a globalized minor mode.
Actually this problem runs deeper, I'll have a look but it will not be easy to fix I think.
Is this the same bug causing undo-tree-visualizer-select
to be shadowed by evil-snipe-s
regardless of evil-snipe-local-mode
being nil
? Seeing these issues on both master and develop.
Regarding repro with ranger
: note that enabling evil-snipe-override-mode
from a deer
buffer doesn't immediately shadow ranger-travel
(f
)--shadowing does occur after navigating to a different folder or reopening deer.
With ranger, I've circumvented the issue by using normal state instead of motion state (which doesn't work in undo-tree-mode
)--in ranger.el, I just changed:
(evil-set-initial-state 'ranger-mode 'motion)
(evil-make-overriding-map ranger-mode-map 'motion)
to
(evil-set-initial-state 'ranger-mode 'normal)
(evil-make-overriding-map ranger-mode-map 'normal)
I'm sort of confused that it doesn't seem like many people are running into this issue... Do not many people use evil-snipe-override
, or something? Is there a simpler workaround?
I think it is indeed the same bug--see: https://github.com/hlissner/evil-snipe/issues/48
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!
Description :octocat:
Keybindings in deer mode are overwritten by evil-snipe layer.
I have tried with dired and ranger hooks to call turn-off-evil-snipe-mode and turn-off-evil-snipe-override-mode but evil-snipe is still loaded in deer.
Reproduction guide :beetle:
Expected behaviour: :heart: :smile: Should call the ranger/deer bindings.
System Info :computer: