Open in Cursor

approved

by awaken233

Add a hotkey to open the current file in Cursor IDE and jump to the cursor position

3 stars531 downloadsUpdated 12d agoMIT
View on GitHub

Open in Cursor / 在 Cursor 中打开

English | 中文


English

📖 Description

An Obsidian plugin that opens the current file in multiple IDEs (Cursor, VSCode, Kiro) and jumps directly to the current cursor position. It is designed for seamless workflows between Obsidian note-taking and external editors.

✨ Features

  • Multi-IDE Commands: Separate commands for Cursor, VSCode, and Kiro.
  • Per-IDE Hotkeys: Assign different hotkeys for each IDE command in Obsidian Hotkeys.
  • Independent Command Paths: Configure executable command/path for each IDE.
  • Cross-Platform: Works on Windows, macOS, and Linux

Use Command Palette entries Open in Cursor, Open in VSCode, and Open in Kiro. You can assign different hotkeys for each command in Obsidian's Hotkeys settings. Note: No default hotkey is provided to avoid conflicts with existing user configurations.

🚀 Installation

Method 1: Community Plugin Store (Recommended)

  1. Open Obsidian Settings
  2. Go to Community plugins and disable Safe mode
  3. Browse community plugins and search for "Open in Cursor"
  4. Install and enable the plugin

Method 2: Manual Installation

  1. Download the latest release from GitHub Releases (ZIP)
  2. Extract the files to VaultFolder/.obsidian/plugins/
  3. Reload Obsidian and enable the plugin in Settings

⚙️ Settings

  • Cursor Command: Command/path for Cursor executable
  • VSCode Command: Command/path for VSCode executable
  • Kiro Command: Command/path for Kiro executable
  • Notifications: Toggle success/error notifications
  • Debug Mode: Enable for troubleshooting
  • Connection Tests: Test availability for each IDE separately

Commands & Hotkeys

  • Open in Cursor
  • Open in VSCode
  • Open in Kiro

Set hotkeys per command in: Settings -> Hotkeys.

Supported IDEs

You can configure command/path for each IDE:

Cursor:

/Applications/Cursor.app/Contents/Resources/app/bin/cursor

Kiro:

/Applications/Kiro.app/Contents/Resources/app/bin/code

VSCode:

/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code

If available in PATH, you can also use cursor, code, and kiro.


中文

📖 简介

这是一个 Obsidian 插件,可在多个 IDE(Cursor、VSCode、Kiro)中打开当前文件,并自动跳转到当前光标位置,适合笔记与外部编辑器协同工作流。

✨ 功能特性

  • 多 IDE 独立命令:分别提供 Cursor / VSCode / Kiro 打开命令
  • 按 IDE 分配快捷键:可在 Obsidian 热键设置中为每个命令绑定不同快捷键
  • 独立命令路径配置:每个 IDE 可单独配置可执行命令/路径
  • 跨平台支持:支持 Windows、macOS 和 Linux

可通过命令面板使用 Open in CursorOpen in VSCodeOpen in Kiro。 可在 Obsidian 热键设置中分别配置每个命令的快捷键。 注意:为避免与现有用户配置冲突,不提供默认快捷键。

🚀 安装方法

方法一:社区插件商店 (推荐)

  1. 打开 Obsidian 设置
  2. 进入 第三方插件 并关闭安全模式
  3. 浏览社区插件并搜索 "Open in Cursor"
  4. 安装并启用插件

方法二:手动安装

  1. GitHub Releases 下载最新版本 ZIP
  2. 解压文件到 VaultFolder/.obsidian/plugins/
  3. 重新加载 Obsidian 并在设置中启用该插件

⚙️ 设置选项

  • Cursor 命令:配置 Cursor 可执行命令/路径
  • VSCode 命令:配置 VSCode 可执行命令/路径
  • Kiro 命令:配置 Kiro 可执行命令/路径
  • 通知设置:切换成功/错误通知
  • 调试模式:启用以进行故障排除
  • 连接测试:可分别测试每个 IDE 的可用性

命令与快捷键

  • Open in Cursor
  • Open in VSCode
  • Open in Kiro

设置 -> 快捷键 中按命令分别绑定快捷键。

支持的 IDE

您可以分别为不同 IDE 配置命令/路径:

Cursor:

/Applications/Cursor.app/Contents/Resources/app/bin/cursor

Kiro:

/Applications/Kiro.app/Contents/Resources/app/bin/code

VSCode:

/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code

如果命令已在系统 PATH 中,也可直接使用 cursorcodekiro

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.