feat: simplify ask UI copy and note shortcuts
This commit is contained in:
+10
-10
@@ -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
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user