Meowrium/dsh-copy-file-path
Adds Copy relative path and Copy absolute path to the delivered-file card menu in the DSH web UI, with a confirmation pill.
Extends the menu on each file card a turn delivers with two rows: copy the path relative to the session workspace, and copy the absolute host path. Nothing is guessed or rewritten — both values come from what DSH itself already holds. Under the hood it watches for the menu's portal, and while a delivery card's chevron is expanded it clones the last row, relabels it, gives it a copy icon and owns the click; the injected rows are plain DOM, the handler stops propagation so the React root never sees the event, and the popup is dismissed through the same outside-pointer path a real click elsewhere would use. If the menu is not open, the plugin does nothing.
Install
dsh plugin --profile web add github:Meowrium/dsh-copy-file-pathAfter installing, restart dsh web and hard-refresh the page, because the host mounts the bundle at startup and the browser shell rebuilds its client modules. A click copies the value and shows a short confirmation pill with what was copied.
Compatibility
DSH Web with the deliverables file cards. The README explains why this needs a plugin at all: those menu rows are a hard-coded items array inside the deliverables client package, rendered by the primitives Menu, with no slot, registry or hook for extra rows — so the plugin post-processes the DOM the same way dsh-mermaid does, with no core patch and no monkey-patching of React internals.
Details
- Repo: Meowrium/dsh-copy-file-path
- Category: Files & Data
- Stars: 0
- Version: not published to npm; installs from the GitHub default branch
Alternatives
VviLliAm-qwq/dsh-open-path · Nwflower/dsh-file-claim · jhuanxx44/dsh-paste-path