diff options
| author | Nate Sesti <sestinj@gmail.com> | 2023-08-02 21:54:22 -0700 | 
|---|---|---|
| committer | Nate Sesti <sestinj@gmail.com> | 2023-08-02 21:54:22 -0700 | 
| commit | 06782224e42dfd6e18e242781bb8c1346a7b5db1 (patch) | |
| tree | e2be06d774b2fb2a64db243566219c5ed0c64920 /extension | |
| parent | 65747716b3a2fd58843f63d66a0f25a81aa504d8 (diff) | |
| download | sncontinue-06782224e42dfd6e18e242781bb8c1346a7b5db1.tar.gz sncontinue-06782224e42dfd6e18e242781bb8c1346a7b5db1.tar.bz2 sncontinue-06782224e42dfd6e18e242781bb8c1346a7b5db1.zip  | |
keyboard shortcuts
Diffstat (limited to 'extension')
| -rw-r--r-- | extension/package.json | 20 | ||||
| -rw-r--r-- | extension/react-app/src/components/ComboBox.tsx | 4 | ||||
| -rw-r--r-- | extension/src/commands.ts | 10 | 
3 files changed, 34 insertions, 0 deletions
diff --git a/extension/package.json b/extension/package.json index 744fe773..1b4ef3da 100644 --- a/extension/package.json +++ b/extension/package.json @@ -111,6 +111,16 @@          "command": "continue.viewLogs",          "category": "Continue",          "title": "View Logs" +      }, +      { +        "command": "continue.toggleAuxiliaryBar", +        "category": "Continue", +        "title": "Toggle Auxiliary Bar" +      }, +      { +        "command": "continue.focusContinueInputWithEdit", +        "category": "Continue", +        "title": "Focus Continue Input With Edit"        }      ],      "keybindings": [ @@ -120,6 +130,11 @@          "key": "ctrl+m"        },        { +        "command": "continue.focusContinueInputWithEdit", +        "mac": "cmd+shift+m", +        "key": "ctrl+shift+m" +      }, +      {          "command": "continue.suggestionDown",          "mac": "shift+ctrl+down",          "key": "shift+ctrl+down" @@ -148,6 +163,11 @@          "command": "continue.quickTextEntry",          "mac": "cmd+shift+l",          "key": "ctrl+shift+l" +      }, +      { +        "command": "continue.toggleAuxiliaryBar", +        "mac": "option+cmd+m", +        "key": "alt+ctrl+m"        }      ],      "menus": { diff --git a/extension/react-app/src/components/ComboBox.tsx b/extension/react-app/src/components/ComboBox.tsx index ba87cb9f..91672b87 100644 --- a/extension/react-app/src/components/ComboBox.tsx +++ b/extension/react-app/src/components/ComboBox.tsx @@ -255,6 +255,10 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {      const handler = (event: any) => {        if (event.data.type === "focusContinueInput") {          inputRef.current!.focus(); +      } else if (event.data.type === "focusContinueInputWithEdit") { +        inputRef.current!.focus(); + +        inputRef.current!.value = "/edit";        }      };      window.addEventListener("message", handler); diff --git a/extension/src/commands.ts b/extension/src/commands.ts index 35d466e8..351c055d 100644 --- a/extension/src/commands.ts +++ b/extension/src/commands.ts @@ -52,6 +52,16 @@ const commandsMap: { [command: string]: (...args: any) => any } = {      }      focusedOnContinueInput = !focusedOnContinueInput;    }, +  "continue.focusContinueInputWithEdit": async () => { +    vscode.commands.executeCommand("continue.continueGUIView.focus"); +    debugPanelWebview?.postMessage({ +      type: "focusContinueInputWithEdit", +    }); +    focusedOnContinueInput = true; +  }, +  "continue.toggleAuxiliaryBar": () => { +    vscode.commands.executeCommand("workbench.action.toggleAuxiliaryBar"); +  },    "continue.quickTextEntry": async () => {      const text = await vscode.window.showInputBox({        placeHolder:  | 
