Skip to content

Instantly share code, notes, and snippets.

@joncardasis
Created October 31, 2025 16:39
Show Gist options
  • Select an option

  • Save joncardasis/b5b4eec08085c4a3f8b37c057d31c63d to your computer and use it in GitHub Desktop.

Select an option

Save joncardasis/b5b4eec08085c4a3f8b37c057d31c63d to your computer and use it in GitHub Desktop.
Disable Cursor overriding cmd+k clear

cmd+k is a normal keybindings in shells to clear. Cursor highjacks this keybindings for their generation in terminal. Update keybindings JSON to include the following to disable this behavior from Cursor.

{
    "key": "shift+cmd+k",
    "command": "cursorai.action.generateInTerminal",
    "when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
  },
  {
    "key": "cmd+k",
    "command": "-cursorai.action.generateInTerminal",
    "when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported || terminalHasBeenCreated && terminalPromptBarVisible || terminalProcessSupported && terminalPromptBarVisible"
  },
  {
    "key": "cmd+k",
    "command": "composer.startComposerPrompt",
    "when": "composerIsEnabled && !terminalFocus"
  },
  {
    "key": "cmd+k",
    "command": "-composer.startComposerPrompt",
    "when": "composerIsEnabled"
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment