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

Add binding for magit-reset-popup #19

Closed fbergroth closed 8 years ago

fbergroth commented 8 years ago

It was recently introduced.

justbur commented 8 years ago

Any suggestions for where to put it?

fbergroth commented 8 years ago

X feels natural, but I don't have a good suggestion that doesn't collide :confused:

justbur commented 8 years ago

X is taken already k and K were moved to x and X. Any other suggestions would be welcome.

fbergroth commented 8 years ago

For symmetry with C-r (magit-reset), I guess it makes sense to bind it to C-R or M-r.

Magit has magit-reset on x and magit-reset-popup on X.

justbur commented 8 years ago

Yes that would be the natural thing to do but I feel there must be a better way.

justbur commented 8 years ago

Here's some possibilities

  1. C-R because it follows the other rules. Bad because it's three keys and not very vim-like
  2. ' for reset and " for the popup. Not mnemonic at all, but on the home row and not taken really.
  3. , for reset and < for the popup. I like the back arrow for reset, but that's about it.

Do you like any of those?

justbur commented 8 years ago

I never liked o and O for revert, so maybe those are better for reset and we can put revert somewhere else. The mnemonic was "old", and maybe that's better for reset as in go back to an old state.

andyleejordan commented 8 years ago

Unfortunately the choice of - is also already taken, by magit-diff-less-context.

justbur commented 8 years ago

Crap, you're right. I forgot about that one, because I never use it.

It seems that = would work for diff-less-context. Would that be adequate?

andyleejordan commented 8 years ago

Seems fine to me :)

justbur commented 8 years ago

@andschwa Should be fixed now. Sorry for the oversight

andyleejordan commented 8 years ago

No problem :smile: