Skip to content

fix: copy folder path when a folder is selected - #2614

Open
weiningwei wants to merge 1 commit into
sourcegit-scm:developfrom
weiningwei:fix/copy-folder-path
Open

fix: copy folder path when a folder is selected#2614
weiningwei wants to merge 1 commit into
sourcegit-scm:developfrom
weiningwei:fix/copy-folder-path

Conversation

@weiningwei

@weiningwei weiningwei commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Pressing Ctrl+C on a folder row in the unstaged/staged change tree copied the first file path under the folder, or silently did nothing when the folder contained multiple files. This PR makes the copy behavior consistent with the right-click "Copy Path" menu item.

Pressing Ctrl+C on a folder row in the unstaged/staged change tree copied
the first file path under the folder (or silently did nothing when the
folder contained multiple files). Now the Ctrl+C handler checks the real
selection in the tree container first and copies the folder path, and
multi-selection copies every path line by line. Ctrl+Shift+C keeps copying
absolute paths.
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