fix: remove footer navigation hints

This commit is contained in:
Erik Kotsiuba
2026-05-06 12:44:37 +02:00
parent f1a0a5d5e5
commit 45d8302e0a
2 changed files with 1 additions and 14 deletions
-11
View File
@@ -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<FooterKeymapContext, readonly string[]> = {
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",
+1 -3
View File
@@ -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",