Repository navigation
Commit dialog: optional tree view for changed files #30143
mohit-dayma
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Problem
The commit dialog lists changed files as one flat list of full paths. When a change touches many files in a few folders, the list gets long and repetitive, e.g.
src/app/blog/[slug]/page.tsx,src/app/blog/[slug]/layout.tsx,src/app/blog/page.tsx. That makes it hard to scan what's being committed. Picking a subset in Edit mode also means ticking files one at a time, even when you want to leave out a whole folder.Chat and the diff panel already show changed files as a folder tree. The commit dialog is the only place that doesn't.
Proposal
Add a list/tree toggle to the Files header of the commit dialog, next to Edit:
+/-count and can be collapsed. Clicking a file still opens it in your editor, the same as in list view.Scope
Prior work I checked
None of these propose a tree view in the commit dialog.
I have a working implementation on a branch and can open a PR with before/after screenshots if this direction is OK.
All reactions