sourcegit icon indicating copy to clipboard operation
sourcegit copied to clipboard

Add sorting by Status or Path to Local Changes / Stashes / History | Changes display modes dropdown

Open kreys opened this issue 6 months ago • 1 comments

I have recently discovered this brilliant git client, and I was missing Sort by Status feature in all the changes view.

I have created sorting mode dropdown functionality to the changes view, allowing users to sort changes by either file path (default, previous only option) or by status (modified, renamed, added, deleted, untracked, conflicted, etc.) via the ChangeDisplayMode button.

Key features:

  • New sorting options in the ChangeDisplayMode menu: “Sort by Path” and “Sort by Status”, with proper Checkmark icon indicating which one is selected
  • Status-based sorting groups changes by type, with logical priority (e.g., conflicts and modified files first)
  • Sorting mode is persisted per context (unstaged, staged, stash, history commit changes)
  • UI and localization updated for all supported languages

Sorting by Status in my is increasing changes readability a lot, I would even vote for making it default view.

Screenshot 20250724-014940

kreys avatar Jul 23 '25 23:07 kreys

As mentioned in above comments I have refactored the duplicated GetStatusSortPriority logic into a static method in Models.Change as suggested. All usages now reference the shared method. Build works fine :)

kreys avatar Jul 25 '25 12:07 kreys