feat: simplify ask UI copy and note shortcuts

This commit is contained in:
Erik Kotsiuba
2026-04-19 16:32:27 +02:00
parent fcd1f1bce5
commit 9ab368ad6b
7 changed files with 39 additions and 19 deletions
+10 -10
View File
@@ -12,17 +12,17 @@ export const UI_DIMENSIONS = {
} as const;
export const UI_TEXT = {
questionNoteTitle: "Question note",
reviewTitle: "Review your answers",
readyToSubmit: "Ready to submit your answers?",
unanswered: "→ (unanswered)",
footerInput: " Enter submit · Esc save and close",
footerNote: " Enter save · Esc save and close",
questionNoteTitle: "Note",
reviewTitle: "Review answers",
readyToSubmit: "Submit answers?",
unanswered: "→ unanswered",
footerInput: " Enter submit · Esc close",
footerNote: " Enter save · Esc close",
footerSubmit: " ↑↓ select · Enter confirm · Esc cancel",
footerMulti:
" ⇆ tab · ↑↓ select · Space toggle · Enter continue · N option note · Ctrl+N question note · Esc dismiss · 1-9 quick toggle",
" ⇆ tab · ↑↓ select · Space toggle · Enter continue · N/Shift+N note · Esc dismiss",
footerDefault:
" ⇆ tab · ↑↓ select · Enter confirm · N option note · Ctrl+N question note · Esc dismiss",
editorPlaceholderInput: "Type your answer...",
editorPlaceholderNote: "Add a note...",
" ⇆ tab · ↑↓ select · Enter confirm · N/Shift+N note · Esc dismiss",
editorPlaceholderInput: "Type answer...",
editorPlaceholderNote: "Add note...",
} as const;
+2 -2
View File
@@ -89,11 +89,11 @@ function getNavigationInputCommand(data: string): AskInputCommand {
}
function isOptionNoteShortcut(data: string): boolean {
return data === "n" || data === "N";
return data === "n";
}
function isQuestionNoteShortcut(data: string): boolean {
return matchesKey(data, Key.ctrl("n"));
return data === "N";
}
function parseDigit(data: string): number | null {