From 06782224e42dfd6e18e242781bb8c1346a7b5db1 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 2 Aug 2023 21:54:22 -0700 Subject: keyboard shortcuts --- extension/package.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'extension/package.json') 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": [ @@ -119,6 +129,11 @@ "mac": "cmd+m", "key": "ctrl+m" }, + { + "command": "continue.focusContinueInputWithEdit", + "mac": "cmd+shift+m", + "key": "ctrl+shift+m" + }, { "command": "continue.suggestionDown", "mac": "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": { -- cgit v1.2.3-70-g09d2 From 4c1e87f39725aa855493ab7c31ac21a65e7e931c Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 2 Aug 2023 22:10:20 -0700 Subject: more keyboard shortcuts work --- extension/package.json | 2 +- extension/react-app/src/components/ComboBox.tsx | 2 +- extension/src/commands.ts | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) (limited to 'extension/package.json') diff --git a/extension/package.json b/extension/package.json index 1b4ef3da..edd3dc94 100644 --- a/extension/package.json +++ b/extension/package.json @@ -166,7 +166,7 @@ }, { "command": "continue.toggleAuxiliaryBar", - "mac": "option+cmd+m", + "mac": "alt+cmd+m", "key": "alt+ctrl+m" } ], diff --git a/extension/react-app/src/components/ComboBox.tsx b/extension/react-app/src/components/ComboBox.tsx index 91672b87..3b20cd8d 100644 --- a/extension/react-app/src/components/ComboBox.tsx +++ b/extension/react-app/src/components/ComboBox.tsx @@ -258,7 +258,7 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { } else if (event.data.type === "focusContinueInputWithEdit") { inputRef.current!.focus(); - inputRef.current!.value = "/edit"; + downshiftProps.setInputValue("/edit"); } }; window.addEventListener("message", handler); diff --git a/extension/src/commands.ts b/extension/src/commands.ts index 351c055d..433982ed 100644 --- a/extension/src/commands.ts +++ b/extension/src/commands.ts @@ -61,6 +61,9 @@ const commandsMap: { [command: string]: (...args: any) => any } = { }, "continue.toggleAuxiliaryBar": () => { vscode.commands.executeCommand("workbench.action.toggleAuxiliaryBar"); + debugPanelWebview?.postMessage({ + type: "focusContinueInputWithEdit", + }); }, "continue.quickTextEntry": async () => { const text = await vscode.window.showInputBox({ -- cgit v1.2.3-70-g09d2 From a43132c73a5d015bf160f0684b754c6f1b9f160c Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 2 Aug 2023 22:22:15 -0700 Subject: patch --- extension/package-lock.json | 4 ++-- extension/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'extension/package.json') diff --git a/extension/package-lock.json b/extension/package-lock.json index 60702457..eae0d18a 100644 --- a/extension/package-lock.json +++ b/extension/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "0.0.241", + "version": "0.0.245", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "continue", - "version": "0.0.241", + "version": "0.0.245", "license": "Apache-2.0", "dependencies": { "@electron/rebuild": "^3.2.10", diff --git a/extension/package.json b/extension/package.json index edd3dc94..74511aec 100644 --- a/extension/package.json +++ b/extension/package.json @@ -14,7 +14,7 @@ "displayName": "Continue", "pricing": "Free", "description": "The open-source coding autopilot", - "version": "0.0.241", + "version": "0.0.245", "publisher": "Continue", "engines": { "vscode": "^1.67.0" -- cgit v1.2.3-70-g09d2 From 26566945879c6bbd1125abe4fe47d65f1eb85d7d Mon Sep 17 00:00:00 2001 From: Nate Sesti <33237525+sestinj@users.noreply.github.com> Date: Thu, 3 Aug 2023 00:44:56 -0700 Subject: Update package.json --- extension/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extension/package.json') diff --git a/extension/package.json b/extension/package.json index 74511aec..a50b8d2d 100644 --- a/extension/package.json +++ b/extension/package.json @@ -14,7 +14,7 @@ "displayName": "Continue", "pricing": "Free", "description": "The open-source coding autopilot", - "version": "0.0.245", + "version": "0.0.249", "publisher": "Continue", "engines": { "vscode": "^1.67.0" -- cgit v1.2.3-70-g09d2