Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Evil-style chunk folding #36

Open
justmytwospence opened this issue Mar 30, 2018 · 1 comment
Open

Evil-style chunk folding #36

justmytwospence opened this issue Mar 30, 2018 · 1 comment

Comments

@justmytwospence
Copy link

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.

justbur added a commit that referenced this issue May 22, 2018
Initial attempt at #36. Commands are

  - z1 Reset visibility to level 1 for all sections
  - z2 Reset visibility to level 2 for all sections
  - z3 Reset visibility to level 3 for all sections
  - z4 Reset visibility to level 4 for all sections
  - za Toggle a section
  - zo Show section
  - zO Show sections recursively
  - zc Hide section
  - zC Hide sections recursively
  - zr Same as z4.
@justbur
Copy link
Member

justbur commented May 22, 2018

Thanks. Try dbf5a64

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants