cofi / evil-leader

<leader> key for evil
GNU General Public License v3.0
315 stars 22 forks source link

Unexpected behavior for non-prefix key #23

Open yangchenyun opened 9 years ago

yangchenyun commented 9 years ago

Define a key with one char in another prefix key is not allowed. But the expected behavior will be p binds to one and ps binds to another cmd. "p" 'projectile-switch-project "ps" 'smex

This situation could get worse if evil-leader/set-key-for-mode is used. (evil-leader/set-key "p" ) (evil-leader/set-key 'minor-mode "ps" )

Then the original "p" bindings will be overwritten without warning.