evil-leader icon indicating copy to clipboard operation
evil-leader copied to clipboard

Feature request: State-local bindings

Open gnosis-zz opened this issue 11 years ago • 1 comments

It would be nice if evil-leader would allow one key to simultaneously be bound to a different action for each evil state.

For example, allow all of the following to be active at the same time:

(evil-leader/set-key-for-mode 'motion 'help-mode "x" 'foo) (evil-leader/set-key-for-mode 'normal 'help-mode "x" 'bar) (evil-leader/set-key-for-mode 'insert 'help-mode "x" 'baz)

gnosis-zz avatar May 23 '13 20:05 gnosis-zz

indeed! its weird that nobody else asked for this feature @gnosis-zz do you know any workaround other than e.g.:

(evil-define-minor-mode-key 'visual 'alchemist-mode " e" 'alchemist-iex-send-current-line)
                                                     ^^
(evil-define-minor-mode-key 'visual 'alchemist-mode " E" 'alchemist-iex-send-current-line-and-go)
                                                     ^^
...

and so on ?

vyorkin avatar Aug 19 '17 15:08 vyorkin