feat(sftp): add "Copy path" file-row context-menu action (desktop)#62
Merged
Conversation
Closes #54. Mirrors the mobile SFTP "Copy path" action in the shared desktop FilePane context menu (both single- and dual-pane views). Single selection copies the entry path; multi-selection copies one path per line. Works for local and remote panes via writeClipboard. Adds en/fr/ru labels under fileTransfer.pane.menu and a pure copyPathText helper with unit tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #54.
Adds a Copy path item to the desktop SFTP file-browser row context menu, closing the desktop/mobile parity gap (mobile already has
mobile.sftp.copyPath).Change
buildSelectionActions()(FilePane.tsx), so it lands in both desktop views at once — single-pane RightPanel browser and the dual-pane SFTPPage.writeClipboardfromsrc/utils/clipboard.ts.copyPathTexthelper extracted + unit-tested (single / multi / ordering / empty).fileTransfer.pane.menu.copyPathforen/fr/ru(pluralized; ru with few/many).Verification
tscclean; i18n key-parity test passes; full suite 786 tests green./root/alpha.txt; multi-select copied both paths one-per-line; menu renders with the clipboard icon between Edit and Rename.