diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-08-03 01:16:04 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-08-03 01:16:04 -0700 |
commit | 01ea5e221db410c1ac1e138caa80a6385458fe9b (patch) | |
tree | 19941667006e92ee3204c9d76f13521bd27621f2 /extension | |
parent | bfd2f09cd6ebdc18e8162555a1859f0098b14cd3 (diff) | |
parent | 9c07a0ee6cc4eb12518ecab894b197562837e737 (diff) | |
download | sncontinue-01ea5e221db410c1ac1e138caa80a6385458fe9b.tar.gz sncontinue-01ea5e221db410c1ac1e138caa80a6385458fe9b.tar.bz2 sncontinue-01ea5e221db410c1ac1e138caa80a6385458fe9b.zip |
Merge branch 'main' into package-python [skip ci]
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 7a703368..18783391 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": "alt+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 18e150e5..9017f19c 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(); + + downshiftProps.setInputValue("/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: |