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

Evil-style chunk folding

Open justmytwospence opened this issue 8 years ago • 1 comments

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

  • zr Opened all chunks
  • za Toggled a chunk
  • zc Closed all chunk
  • zc Closed a fold
  • zo Opened a chunk
  • zO Opened a chunk recursively

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.

justmytwospence avatar Mar 30 '18 15:03 justmytwospence

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.

justbur avatar May 22 '18 14:05 justbur