Open your vault or current note in Cursor with one click. Bridge your notes and AI coding workflow.
Repository: https://github.com/xingzixhh/switch2cursor
.code-workspace); reuse the window if so, otherwise open a new oneOpen vault in Cursor / Open current file in CursorCopy this project into your vault plugin folder:
<your-vault>/.obsidian/plugins/switch-to-cursor/
Build the plugin:
npm install
npm run build
Enable Switch2Cursor under Settings → Community plugins
cursor CLI available (enable "Add to PATH" during installation)| Action | How |
|---|---|
| Open current note | Click the ribbon icon, or run Open current file in Cursor from the command palette |
| Open entire vault | Run Open vault in Cursor from the command palette |
| Open a file or folder | Right-click in the file explorer → Open in Cursor |
| Jump from editor | Right-click inside a note → Open in Cursor |
Configure the Cursor command path, cursor navigation, notifications, and debug options under Settings → Switch2Cursor.
| Platform | Default command |
|---|---|
| Windows | C:\Program Files\Cursor\Cursor.exe |
| macOS | /Applications/Cursor.app/Contents/MacOS/Cursor |
| Linux | cursor |
npm install
npm run dev # watch mode, outputs main.js
npm run build # production build
Source code lives in src/. Internal documentation is available in project_document/.
Chinese documentation: README.zh-CN.md
MIT