Skip to content

Add view sorting commands and menus for Branches, Contributors, Remotes, Repositories, Tags, and Worktrees #4738

@eamodio

Description

@eamodio

Summary

Adds sort commands and menus for Branches, Contributors, Remotes, Repositories, Tags, and Worktrees views. Introduces a new sortWorktreesBy configuration option to control worktree sorting preferences.

Impact

Users can now sort their repository views (Branches, Contributors, Remotes, Repositories, Tags, and Worktrees) using context menu options, improving the ability to organize and navigate through repository data according to their preferences. The new sortWorktreesBy configuration setting provides persistent sorting preferences for worktrees.

Validation

  1. Open the Branches view and access the context menu
  2. Verify that sorting options are available (e.g., sort by name, date, etc.)
  3. Repeat for Contributors, Remotes, Repositories, Tags, and Worktrees views
  4. In settings, verify that sortWorktreesBy configuration option is available and persists the user's choice
  5. Switch between different sorting options and confirm the view updates accordingly

Risk

Low – This is a non-breaking enhancement that adds new UI controls and configuration options. Existing behavior is preserved, and the new sorting options are purely additive functionality.

Related Issues

Metadata

Metadata

Assignees

Labels

area-viewsIssues or features related to (tree) viewsverified ✔Verified

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions