From 45d8302e0a2e1527f0129bbb53fec38927a722ac Mon Sep 17 00:00:00 2001 From: Erik Kotsiuba Date: Wed, 6 May 2026 12:37:32 +0200 Subject: [PATCH] fix: remove footer navigation hints --- src/constants/keymaps.ts | 11 ----------- tests/render-frame.test.ts | 4 +--- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/constants/keymaps.ts b/src/constants/keymaps.ts index d396cba..baa1230 100644 --- a/src/constants/keymaps.ts +++ b/src/constants/keymaps.ts @@ -311,12 +311,6 @@ export function renderFooterKeymaps( const editor = getAskContextBindings(config, "editor"); const noteEditor = getAskContextBindings(config, "noteEditor"); const bindings = getAskKeyBindings(config); - const optionNavigationLabel = - `${main.previousOption.label}${main.nextOption.label}`.replaceAll( - " / ", - "" - ); - const tabNavigationLabel = "⇆"; const noteNavigationLabel = `${main.optionNote.label}/${main.questionNote.label}`; const hintsByContext: Record = { input: [ @@ -331,14 +325,11 @@ export function renderFooterKeymaps( ], submit: [ footerHint(bindings.numberShortcut, "hotkeys"), - footerHint(main.previousOption, "select", optionNavigationLabel), footerHint(main.confirm, "confirm"), footerHint(main.cancel, "cancel"), footerHint(global.settings, "settings"), ], multi: [ - footerHint(main.nextTab, "tab", tabNavigationLabel), - footerHint(main.previousOption, "select", optionNavigationLabel), footerHint(main.toggle, "toggle"), footerHint( main.changeQuestionType, @@ -351,8 +342,6 @@ export function renderFooterKeymaps( footerHint(global.settings, "settings"), ], default: [ - footerHint(main.nextTab, "tab", tabNavigationLabel), - footerHint(main.previousOption, "select", optionNavigationLabel), footerHint( main.changeQuestionType, "question type", diff --git a/tests/render-frame.test.ts b/tests/render-frame.test.ts index 024125b..6742752 100644 --- a/tests/render-frame.test.ts +++ b/tests/render-frame.test.ts @@ -226,7 +226,7 @@ test("footer hints wrap into exact lines on narrow screens", () => { }); assert.deepEqual(lines.slice(-6, -1), [ - "Space toggle", + " Space toggle", "t question type", "Enter continue", "N/Shift+N note", @@ -254,8 +254,6 @@ test("footer keeps earlier hint chunk on the first wrapped line", () => { editor: mockEditor(), }); - assert.equal(lines.at(-7), " ⇆ tab · ↑↓ select"); - assert.equal(lines.at(-6), "t question type"); assert.deepEqual(lines.slice(-5, -1), [ "Enter confirm", "N/Shift+N note",