Skip to content

Add file browser button to diff file headers - #311

Open
jsgrrchg wants to merge 1 commit into
zeronsh:mainfrom
jsgrrchg:zeron/minimalist-diff-header-file-button
Open

Add file browser button to diff file headers#311
jsgrrchg wants to merge 1 commit into
zeronsh:mainfrom
jsgrrchg:zeron/minimalist-diff-header-file-button

Conversation

@jsgrrchg

@jsgrrchg jsgrrchg commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Adds a minimal file icon button after the change counts in each diff file header, including sticky headers. Clicking it opens the file in the app's file browser, or focuses its existing tab, without collapsing the diff.

The button uses the existing document icon, theme color, compact control dimensions, hover background, and an “Open in file browser” tooltip. Diff events use a window-aware subscription to open the file through the existing workspace file flow.

image

Validation: cargo check -p zeron-ui --locked and git diff --check passed. Existing compiler warnings remain.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

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