NeogitOrg / neogit

An interactive and powerful Git interface for Neovim, inspired by Magit
MIT License
3.62k stars 218 forks source link

feat: make head section foldable #1365

Closed DanilaMihailov closed 3 weeks ago

DanilaMihailov commented 4 weeks ago

I really like what you did with folds in status view. The fact that I can use default key binds to fold/unfold AND configure some folds to be folded by default is really helpful for me. I usually have a few dozen untracked files and now I just fold them by default. Thank you for that :)

Magit allows to collapse the HEAD section and it seems neat. So I put all HEAD components inside a Section. And added config option to fold them by defalt.

Screenshot 2024-06-08 at 00 49 05 Screenshot 2024-06-08 at 00 49 11

I am not sure about name for config, called it config.status.HEAD_folded for now

CKolkey commented 4 weeks ago

Cool! I didn't know that. Could you commit the config file and add the new line to the readme? :)

DanilaMihailov commented 4 weeks ago

Added field to README and doc. And added types in config.lua

CKolkey commented 3 weeks ago

Awesome stuff - thanks again. And really glad to hear you like the native folding - that took like... two months... to implement 😅