← Back to Marketplace

Cursor

Cursor

v1.0.0 Hook Live Sync
ID: cursor · v2d-official · Website ↗
Download .v2dplugin

Auto-detects Cursor IDE window & ~/.cursor/hooks.json with one-tap accept/reject diff controls.

# AI# IDE# Code Review

Mobile Deck Buttons (9)

ButtonAction IDConditionPrimitive
启动 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

How to Install

  1. One-Click in Desktop (Recommended): Open v2d Desktop → Plugins → Marketplace, find Cursor and click Install.
  2. Offline Import: Click Download .v2dplugin above, then click Import Plugin in v2d Desktop.
View full plugin.json source
{
  "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="
}