emacs-evil / evil-magit

Black magic or evil keys for magit
https://github.com/justbur/evil-magit
GNU General Public License v3.0
273 stars 16 forks source link

C-w #16

Closed justmytwospence closed 8 years ago

justmytwospence commented 8 years ago

When evil-want-C-w-delete is set to nil, Evil uses C-w for window switching keys (like Vim obviously). There is another evil setting, evil-want-C-w-in-emacs-state, that adds the C-w window switching even to emacs-state. Evil-magit should probably respect one of these settings and remap magit-copy-selection-value to something else so that people have a way to switch out of the Magit windows.

justbur commented 8 years ago

Good point. Instead of checking those variables, I decided to put the binding in if evil-magit-use-y-for-yank is non nil, because in that case C-w is redundant. I could add an explicit option, but I think the functionality of C-w is useful in magit if it's not available under another command.

justmytwospence commented 8 years ago

:+1: