Repository navigation
Closed
Labels
feature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code Insiderson-testplanscmGeneral SCM compound issues
Milestone
Description
I find the git panel showing modified files a bit of a mess: files don't seem to be sorted in any way (maybe by full path?):
I find it really difficult to find:
- which files have been modified
- which files are untracked
- a particular file by its name
As a comparison, here is the result of running git status in the same workspace:
On branch bpmn_shapes_17016
Your branch is ahead of 'origin/bpmn_shapes_17016' by 1 commit.
(use "git push" to publish your local commits)
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: ../../pom.xml
modified: app/scripts/app.js
modified: app/styles/onmap.rappid.css
modified: app/views/ui-components-module/generic-form.html
Untracked files:
(use "git add <file>..." to include in what will be committed)
../../.eslintrc.json
../../.vscode/
../../Untitled-1.txt
../../Untitled-6.json
../../chrono.gif
../../iframe.html
../../npm
../../package-lock.json
../../pom-standalone.xml
...
In a quick look I can see that only four files have been modified.
Suggestions:
- add an option to group by status (ie: untracked, modified, added)
- add an option to sort files by name
Sort could work like this:
- if option is set: sort by status
- sort by name
Having a way to filter this list will be a good addition too: in case you want to see the status of a particular file using its name. Like you can do in the settings panel for example, when you look for a specific option.
Reacted by Clifford Fajardo , Marcel, Joshua Lefebvre, Philipp Munin, Marc Lemedioni, Rodger Jordas, Peter Štibraný, Sebastian Bildner, Artem Rizhenkov, Futago-za Ryuu and 60 more
Metadata
Metadata
Assignees
Labels
feature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code Insiderson-testplanscmGeneral SCM compound issues

Activity
[-]Feature request: source-control panel: add the ability to sort files[/-][+]Feature request: source-control panel: add the ability to group & sort files[/+]adel-bassiony-zz commentedon Dec 22, 2017
also please add ability to sort them by folders.
this will be very helpful <3
repl-albert-chu commentedon Jan 4, 2018
I second this. It would be really useful to have this functionality.
marcelh-gh commentedon Mar 15, 2018
especially in multi-root workspaces at least a grouping by root folder would help a lot
[-]Feature request: source-control panel: add the ability to group & sort files[/-][+]SCM: Support sort and grouping[/+]0reo27 commentedon Sep 15, 2018
This is a huge feature if added 👍
ooHmartY commentedon Nov 7, 2018
👍
avlaguta commentedon Nov 8, 2018
I second this too!
9 remaining items
evangrayk commentedon Oct 21, 2019
It would be really nice if the SCM API exposed a way to sort files (such as a sort key). This would let us provide our own sorting options. For the original issue, the git extension could provide status / filename / file type. Other extensions could also detect e.g. auto-generated files and sort those lower.
wesinator commentedon Nov 28, 2019
this is badly needed for usability with multi-file projects.
Should be able to sort both by git status (modified files first), and alphabetical.
Right now, there is no logical sort order. (1.40.2)
bernardoadc commentedon Mar 4, 2020
I find it useful to sort by modified date/hour.
So if I did a small change and want to commit right away, I easily see where it is, on top. Or, if there is some modification that is still pending (and dont want to stash) it will be on the bottom.