Seamlessly open .gdoc, .gsheet, .gform, .gslides, and .gdraw files from your Obsidian vault directly in your browser. If you keep your Google Drive folder inside your vault, this plugin intercepts clicks on those Google Workspace shortcut files and routes them to the correct Google Workspace URL — instead of showing a confusing error in Obsidian.
Google Drive Desktop stores .gdoc, .gsheet, .gform, .gslides, and .gdraw files as small stubs on your filesystem. The plugin handles both modes that Google Drive Desktop can operate in:
| Google Drive mode | Stub type | Strategy used |
|---|---|---|
| Mirror (files downloaded locally) | JSON file containing a url field |
Reads the URL directly and opens it in the browser |
| Stream (cloud-only stubs) | OS-level directory stub (EISDIR) |
Hands the path to the OS shell, which lets Google Drive Desktop resolve and open the file |
Both strategies silently close the Obsidian leaf after routing so there is no leftover blank tab.
main.js and manifest.json from the latest release.<your vault>/.obsidian/plugins/google-workspace-opener/.Requirements: Node.js ≥ 18.18
git clone https://github.com/lazytarget/obsidian-google-workspace-opener.git
cd obsidian-google-workspace-opener
npm install
npm run dev # watch mode — outputs main.js
Copy the output files into your vault's plugin folder (or symlink the repo there directly) and reload Obsidian to test changes.
To do a production build with type-checking:
npm run build
minAppVersion in manifest.json if needed.npm version patch (or minor / major) — this bumps manifest.json, package.json, and versions.json automatically.v prefix).main.js and manifest.json as release assets.