NeogitOrg / neogit

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

feat: show all untracked files in status buffer #1382

Closed titaniumtraveler closed 5 months ago

titaniumtraveler commented 5 months ago

This enables showing all unstaged files in the status buffer instead of just the directories containing them.

While this could theoretically be enabled by setting git config status.showUntrackedFiles all, I think showing all the unstaged files would be a pretty good default for neogit, especially when staging files.

CKolkey commented 5 months ago

Hey! I appreciate the thought - however, in the past I've had complaints of not respecting the git config setting: https://github.com/NeogitOrg/neogit/issues/767

And I subsequently added documentation for how to enable this: https://github.com/NeogitOrg/neogit/blob/11dea1b67bb153cd5b4a2de348ceefa69508dfce/doc/neogit.txt#L1618-L1621

So, given that, I'm going to leave things as-is. I personally agree with you, that it's nice to see things individually, but since not everyone agrees and this is configurable externally, I don't want to mess with people's workflows :)

Thanks!

titaniumtraveler commented 5 months ago

Fair. Thanks for the answer. Though maybe it would be nice to have some config to set it specifically for neogit. While I like having all files shown for neogit, for the normal git status I prefer just having the short overview.

(I would have looked into doing that myself, but the code base is kind of intimidating for someone who is not that experienced with lua lol)