Summon the Obsidian window and pin it on top with a single system-wide hotkey — press the same key again to hide it. Behavior mirrors WorkBuddy's Alt+E.
Desktop only (Windows / macOS / Linux).
manifest.json, main.js, styles.css.<your-vault>/.obsidian/plugins/pin-toggle/.
The folder name must match the id field in manifest.json (pin-toggle).Settings → Community plugins, turn off Restricted mode, then enable Pin Toggle.Hotkeys are bound in Obsidian's own hotkey UI — not inside the plugin settings page.
Settings → Hotkeys.Ctrl+Alt+Space.Ctrl+Alt+Space, so it works out of the box.| Option | Description | Default |
|---|---|---|
| 置顶 (always on top) | Whether the summoned window really floats above other applications. Turn it off to merely bring it to the front. | On |
| 收起方式 | Collapse behavior: hide the window (no taskbar entry, like Alt+E) or minimize it to the taskbar. |
Hide |
Press your hotkey in any application: the window is summoned and pinned on top. Press it again to collapse and return to what you were doing. You can also use the 📌 ribbon icon in the left sidebar, or run the command from the command palette.
[Pin Toggle] 无法获取 Electron 窗口, the Electron remote API is unavailable in your environment; pinning and the global hotkey are disabled.Settings → Hotkeys.npm ci
npm run typecheck # tsc --noEmit
npm run lint # eslint src/ package.json
npm run build # bundles src/main.ts into main.js
一个极简 Obsidian 桌面插件:一次全局热键把窗口唤出并置顶,再按一次收起。行为对标 WorkBuddy 的 Alt+E。
manifest.json、main.js、styles.css。<你的vault>/.obsidian/plugins/pin-toggle/manifest.json 里的 id(即 pin-toggle)一致。设置 → 社区插件 → 关闭「安全模式」→ 在「已安装插件」列表里启用 Pin Toggle。快捷键在 Obsidian 自己的「设置 → 快捷键」里改,不需要去插件设置页手敲按键。
设置 → 快捷键。Ctrl+Alt+Space)绑定即可。Ctrl+Alt+Space,开箱即用。设置页只有两组:快捷键(绑定位置说明 + 立即同步按钮)与行为(两个开关)。
在任意软件按下你设定的热键 → 窗口立即置顶唤出;用完再按 → 收起,回到原工作。左侧边栏也有一个 📌 图标可点按切换;命令面板里也能搜到该命令手动执行。
[Pin Toggle] 无法获取 Electron 窗口:说明当前环境拿不到 Electron remote,置顶与全局热键会停用。npm ci
npm run typecheck
npm run lint
npm run build