IvyYang199920 downloadsDrag Obsidian file explorer items as terminal-friendly absolute paths.
Drag files and folders from Obsidian's File Explorer into terminals as usable path text.
Workbench Drag Path makes Obsidian's File Explorer behave better in terminal-heavy workflows. Drag a note, attachment, or folder from the left file tree into a terminal, and the terminal receives a terminal-friendly file system path instead of an Obsidian-internal drag object.
It is designed for people who use Obsidian next to Terminal.app, iTerm2, Termy, Claude Code, Codex, Gemini CLI, shell scripts, and other local tools.
Obsidian is a strong local-first workspace, but file tree dragging is not optimized for terminal workflows. If your vault is also your project notebook, AI context library, or operating console, you often need to pass a note or folder path into a shell command.
Workbench Drag Path keeps that action direct:
drag from File Explorer -> drop into terminal -> path appears
Example output:
/Users/mac/Documents/Obsidian Vault/Projects/My Note.md
If the terminal does not accept dropped text, paste with Cmd+V / Ctrl+V. The plugin copies the same path text to the clipboard by default.
Open Settings -> Community plugins -> Workbench Drag Path.
| Setting | Default | Description |
|---|---|---|
| Path format | Absolute path | Insert full file system paths or vault-relative paths. |
| Shell quote paths | Off | Wrap paths for shell safety. Useful for paths with spaces when you want shell-ready tokens. |
| Multiple path separator | Space | Separate multiple selected paths with a space or newline. |
| Copy to clipboard fallback | On | Also copy dragged path text to the clipboard. |
| Append trailing space | On | Add a final space after the inserted path. |
Terminal drop behavior is controlled partly by the receiving terminal application. Most terminals that accept text drops should work. If a terminal ignores dropped text, use the clipboard fallback.
Workbench Drag Path runs locally inside Obsidian.
text/plain drop data.After approval:
manifest.json, main.js, and styles.css into:<your-vault>/.obsidian/plugins/workbench-drag-path/
npm install
npm run build
Build output:
main.jsmanifest.jsonstyles.cssFor local testing, copy those files into a vault plugin folder:
<your-vault>/.obsidian/plugins/workbench-drag-path/
Before submitting to the Obsidian community plugin directory:
manifest.json has the correct id, name, version, minAppVersion, and isDesktopOnly.versions.json.manifest.json, such as 0.1.0.manifest.json, main.js, and styles.css to the release.obsidianmd/obsidian-releases.MIT