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

Evil-style chunk folding #36

Open justmytwospence opened 6 years ago

justmytwospence commented 6 years ago

It would be intuitive if the Vim folding keybinding worked for magit chunks. Eg:

Obviously, this would come at the cost of changing the keymap binding for stash operations, but that isn't very semantically named in the first place, so I personally don't see that as a huge deal.

justbur commented 6 years ago

Thanks. Try dbf5a646a7ce1c35c229dfdc423bd5ecd927a3a8

I wasn't sure what the right choice for zr was. I also took the liberty of adding z[1-4] which would be nonstandard for vim but seem useful.

I'm open to suggestions for changes.