From 29a7e6c450059be8953729139fbb12f2a21869cf Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Wed, 12 Jun 2024 15:01:29 -0400 Subject: [PATCH] Switch back to ctrl --- src/defaultCycleWidget.ts | 2 +- src/plugin.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/defaultCycleWidget.ts b/src/defaultCycleWidget.ts index d728e5e..f615888 100644 --- a/src/defaultCycleWidget.ts +++ b/src/defaultCycleWidget.ts @@ -23,7 +23,7 @@ export class DefaultCycleWidget extends WidgetType { words.innerText = `${this.index + 1}/${this.total}`; const key = wrap.appendChild(document.createElement("button")); key.className = "cm-codeium-cycle-key"; - key.innerText = "⌥-]"; + key.innerText = "→ (Ctrl ])"; key.dataset.action = "codeium-cycle"; return wrap; } diff --git a/src/plugin.ts b/src/plugin.ts index a5bc045..413938a 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -72,7 +72,6 @@ function completionPlugin() { nextSuggestionCommand(view); event.stopPropagation(); event.preventDefault(); - console.log("got click, doing it"); return true; } if (isDecorationClicked(view)) { @@ -89,7 +88,7 @@ function completionPlugin() { function nextCompletionPlugin() { return keymap.of([ { - key: "Alt-]", + key: "Ctrl-]", run: nextSuggestionCommand, }, ]);