Skip to content

SCM: Support sort #40712

Closed
Closed

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?):

vscodegitstatus

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:

  1. if option is set: sort by status
  2. 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.

Activity

  1. changed the title [-]Feature request: source-control panel: add the ability to sort files[/-] [+]Feature request: source-control panel: add the ability to group & sort files[/+] on Dec 22, 2017
  2. added
    feature-request
    scm
    and removed
    git
    on Dec 22, 2017
  3. adel-bassiony-zz commented on Dec 22, 2017

    @adel-bassiony-zz

    also please add ability to sort them by folders.
    this will be very helpful <3

  4. repl-albert-chu commented on Jan 4, 2018

    @repl-albert-chu

    I second this. It would be really useful to have this functionality.

  5. marcelh-gh commented on Mar 15, 2018

    @marcelh-gh

    especially in multi-root workspaces at least a grouping by root folder would help a lot

  6. changed the title [-]Feature request: source-control panel: add the ability to group & sort files[/-] [+]SCM: Support sort and grouping[/+] on Sep 14, 2018
  7. 0reo27 commented on Sep 15, 2018

    @0reo27

    This is a huge feature if added 👍

  8. ooHmartY commented on Nov 7, 2018

    @ooHmartY

    👍

  9. avlaguta commented on Nov 8, 2018

    @avlaguta

    I second this too!

  10. 9 remaining items

  11. evangrayk commented on Oct 21, 2019

    @evangrayk
    Contributor

    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.

  12. wesinator commented on Nov 28, 2019

    @wesinator
    Contributor

    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)

  13. bernardoadc commented on Mar 4, 2020

    @bernardoadc

    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.

  14. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Jun 11, 2020
  15. locked and limited conversation to collaborators on Jul 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestinsiders-releasedon-testplanscm

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions