Skip to content

Add optional leading path shortening in file lists - #2888

Open
tib8 wants to merge 4 commits into
sourcegit-scm:developfrom
tib8:shorten-paths-in-filelists
Open

tib8 wants to merge 4 commits into
sourcegit-scm:developfrom
tib8:shorten-paths-in-filelists

Conversation

@tib8

@tib8 tib8 commented Nov 12, 2026

Copy link
Copy Markdown

Long paths in changed-file lists can hide the filename outside the visible panel. Add an optional leading ellipsis that shortens only the directory portion, keeping the full filename intact. Filenames wider than the panel remain available through horizontal scrolling.

The new Shorten leading paths in file lists checkbox is under Preferences → Appearance, defaults to off, and updates open lists immediately. It applies to the shared list view used for unstaged files, staged files, and commit CHANGES. Full paths remain available in tooltips.

Validation: dotnet run --project tests/ChangePathChecks -c Debug passes all 18 layout checks, covering narrow widths, resizing, Unicode paths, staged and unstaged templates, and preference toggling. git diff --check also passes.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant