flutterspike19 downloadsCopy the vault file or local file URL behind a link or file menu item to the Windows clipboard.
Copy Linked File is a Windows desktop plugin for Obsidian. It adds a right-click action that copies the real file behind an internal link, local file URL, embed, or file menu item to the Windows clipboard.
Use it when a note contains a file link such as:
[[paper.pdf]]
![[data.xlsx]]
[[attachments/report.docx|report]]
[spreadsheet](attachments/book.xlsx)
[slides](<file:///I:/data/Research/20260509-0900%20Meeting/20260509-0900%20JC.pptx>)
After choosing Copy linked file, paste into File Explorer, email, chat apps, or browser upload controls as if you had copied the file from Explorer.
powershell.exeThe plugin is marked isDesktopOnly because it uses Node.js and Windows clipboard APIs. macOS, Linux, iOS, and Android are not supported.
Right-click one of these targets and choose Copy linked file:
file:/// URLThe plugin resolves vault targets using Obsidian's link resolver, resolves local file:/// URLs directly, then writes the target file into the Windows clipboard as a file drop list.
The plugin encodes file paths as UTF-16LE base64 before passing them to PowerShell. This preserves paths containing spaces, commas, non-ASCII characters, and punctuation such as em dashes.
Install dependencies:
npm install
Run checks:
npm test
npm run typecheck
Build the release asset:
npm run build
The release asset main.js is generated at the repository root and is intentionally ignored by git. Upload main.js and manifest.json to the GitHub release whose tag matches the manifest version.
manifest.json and versions.json.npm test and npm run typecheck.npm run build.manifest.json version.main.js and manifest.json to the release.obsidianmd/obsidian-releases.Community plugin entry template:
{
"id": "copy-linked-file",
"name": "Copy Linked File",
"author": "Ximkool",
"description": "Copy the vault file behind an internal link or file menu item to the Windows clipboard.",
"repo": "YOUR_GITHUB_USERNAME/obsidian-copy-linked-file"
}
MIT