neogit icon indicating copy to clipboard operation
neogit copied to clipboard

Suggest support next file mapping

Open hiberabyss opened this issue 2 years ago • 2 comments

After reviewing a file changes, I need to fold current file, go to next file and press Tab to unfold it.

Is it possible to finish all these steps with a single key?

hiberabyss avatar Jul 20 '23 06:07 hiberabyss

I'd like to have this as well. I could create a MR if needed!

I'm not sure if magit has defaults for this, but otherwise I suggest ]f/[f for next/previous file and ]h/[h for next/previous hunk. Fugitive has J/K iirc for next/previous hunk (without refolding) which is also a nice option in my opinion.

m9tdev avatar Aug 16 '23 10:08 m9tdev

That would be quite cool! On the status buffer, { and } will go between hunks, but wont auto-toggle them. If you wanna open a PR, I'd be happy to take a look.

CKolkey avatar Aug 16 '23 20:08 CKolkey