continue icon indicating copy to clipboard operation
continue copied to clipboard

Remap "Add highlighted code to context" on MacOS

Open 0xBigBoss opened this issue 1 year ago • 0 comments

Validations

  • [X] I believe this is a way to improve. I'll try to join the Continue Discord for questions
  • [X] I'm not able to find an open issue that requests the same enhancement

Problem

I've been trying out continue for the past few days and have been impressed how awesome it is. However, I hit some confusion today. On VS Code, the default key mapping for Select all occurrences of current selection is ⇧⌘L on MacOS. https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf

Screenshot 2024-08-07 at 10 16 12

Now, that I have continue installed, whenever I try to select all occurrences, it instead runs the continue.focusContinueInput command. Also, ⌘L is already mapped on MacOS to "Expand Line Selection.

Solution

I didn't see any discussion forums for this, but I suggest an alternative on MacOS. I ended up using the following key maps below:

{
  "key": "ctrl+l",
  "command": "continue.focusContinueInput"
}
{
  "key": "ctrl+shift+l",
  "command": "continue.focusContinueInputWithoutClear"
}

The only one that this conflicts with, I believe, is copilot.

{
  "key": "ctrl+l",
  "command": "workbench.action.chat.newChat",
  "when": "chatIsEnabled && inChat"
}

Anyways, hope this helps! thanks for shipping an amazing extension.

0xBigBoss avatar Aug 07 '24 15:08 0xBigBoss