← 返回插件广场

Cursor

Cursor

v1.0.0 Hook 实时联动
ID: cursor · v2d-official · 软件官网 ↗
下载 .v2dplugin

自动定位 Cursor 窗口与安装路径,适配 ~/.cursor/hooks.json 协议与改动一键接受/拒绝

# AI# IDE# 代码审查

手机端按键一览(9 个)

按键名称动作 ID显示时机底层能力
启动 Cursorlaunchstoppedfocus
刷新状态resetstoppedreset
接受改动acceptrunning_or_waithotkey: Ctrl + Enter
拒绝改动rejectrunning_or_waithotkey: Ctrl + Backspace
切到窗口focusrunning_or_waitfocus
打开对话agentrunning_or_waithotkey: Ctrl + L
停止生成stoprunning_or_waituia: stop
发「继续」continue_runrunning_or_waitsend_text: "继续"
发文字指令composealwayscompose modal

如何安装

  1. 桌面端一键安装(推荐):打开声控台 →「应用插件」→「插件广场」,找到 Cursor 点「安装」。
  2. 离线单文件导入:点击上方「下载 .v2dplugin」,在桌面端点「导入插件」选中即可。
展开完整 plugin.json 源码
{
  "schemaVersion": 2,
  "id": "cursor",
  "name": "Cursor",
  "version": "1.0.0",
  "author": "v2d-official",
  "category": "ai",
  "tags": [
    "AI",
    "IDE",
    "代码审查"
  ],
  "description": "自动定位 Cursor 窗口与安装路径,适配 ~/.cursor/hooks.json 协议与改动一键接受/拒绝",
  "homepage": "https://cursor.com",
  "iconBg": "#111116",
  "detect": {
    "aliases": [
      "anysphere"
    ],
    "windowPatterns": [
      "cursor"
    ],
    "startAppPatterns": [
      "anysphere.cursor",
      "cursor"
    ],
    "exePaths": [
      "$LOCALAPPDATA/Programs/cursor/Cursor.exe"
    ],
    "cliNames": [
      "cursor"
    ],
    "sessionDirs": [
      "$HOME/.cursor/projects"
    ]
  },
  "hook": {
    "schema": "cursor",
    "configPaths": [
      "$HOME/.cursor/hooks.json"
    ],
    "events": [
      "sessionStart",
      "beforeSubmitPrompt",
      "preToolUse",
      "postToolUse",
      "stop",
      "sessionEnd"
    ]
  },
  "actions": [
    {
      "id": "launch",
      "label": "启动 Cursor",
      "hint": "打开并置顶",
      "icon": "window",
      "kind": "primary",
      "when": "stopped",
      "exec": {
        "type": "focus"
      }
    },
    {
      "id": "reset",
      "label": "刷新状态",
      "icon": "refresh",
      "kind": "secondary",
      "when": "stopped",
      "exec": {
        "type": "reset"
      }
    },
    {
      "id": "accept",
      "label": "接受改动",
      "hint": "Ctrl + Enter",
      "icon": "check",
      "kind": "primary",
      "when": "running_or_wait",
      "exec": {
        "type": "hotkey",
        "chord": "Ctrl + Enter"
      }
    },
    {
      "id": "reject",
      "label": "拒绝改动",
      "hint": "Ctrl + Backspace",
      "icon": "stop",
      "kind": "danger",
      "when": "running_or_wait",
      "exec": {
        "type": "hotkey",
        "chord": "Ctrl + Backspace"
      }
    },
    {
      "id": "focus",
      "label": "切到窗口",
      "hint": "置顶到最前",
      "icon": "window",
      "kind": "secondary",
      "when": "running_or_wait",
      "exec": {
        "type": "focus"
      }
    },
    {
      "id": "agent",
      "label": "打开对话",
      "hint": "Ctrl + L",
      "icon": "spark",
      "kind": "secondary",
      "when": "running_or_wait",
      "exec": {
        "type": "hotkey",
        "chord": "Ctrl + L"
      }
    },
    {
      "id": "stop",
      "label": "停止生成",
      "icon": "stop",
      "kind": "secondary",
      "when": "running_or_wait",
      "exec": {
        "type": "uia",
        "target": "stop"
      }
    },
    {
      "id": "continue_run",
      "label": "发「继续」",
      "icon": "send",
      "kind": "secondary",
      "when": "running_or_wait",
      "exec": {
        "type": "send_text",
        "text": "继续"
      }
    },
    {
      "id": "compose",
      "label": "发文字指令",
      "icon": "send",
      "kind": "secondary",
      "when": "always",
      "ui": "compose",
      "exec": {
        "type": "send_text"
      }
    }
  ],
  "descriptionEn": "Auto-detects Cursor IDE window & ~/.cursor/hooks.json with one-tap accept/reject diff controls.",
  "tagsEn": [
    "AI",
    "IDE",
    "Code Review"
  ],
  "icon": "data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGhlaWdodD0iMWVtIiBzdHlsZT0iZmxleDpub25lO2xpbmUtaGVpZ2h0OjEiIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjFlbSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48dGl0bGU+Q3Vyc29yPC90aXRsZT48cGF0aCBkPSJNMjIuMTA2IDUuNjhMMTIuNS4xMzVhLjk5OC45OTggMCAwMC0uOTk4IDBMMS44OTMgNS42OGEuODQuODQgMCAwMC0uNDE5LjcyNnYxMS4xODZjMCAuMy4xNi41NzcuNDIuNzI3bDkuNjA3IDUuNTQ3YS45OTkuOTk5IDAgMDAuOTk4IDBsOS42MDgtNS41NDdhLjg0Ljg0IDAgMDAuNDItLjcyN1Y2LjQwN2EuODQuODQgMCAwMC0uNDItLjcyNnptLS42MDMgMS4xNzZMMTIuMjI4IDIyLjkyYy0uMDYzLjEwOC0uMjI4LjA2NC0uMjI4LS4wNjFWMTIuMzRhLjU5LjU5IDAgMDAtLjI5NS0uNTFsLTkuMTEtNS4yNmMtLjEwNy0uMDYyLS4wNjMtLjIyOC4wNjItLjIyOGgxOC41NWMuMjY0IDAgLjQyOC4yODYuMjk2LjUxNHoiPjwvcGF0aD48L3N2Zz4="
}