mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-09-04 10:11:46 +03:00
feat(tui): add clickable runtime controls
This commit is contained in:
@@ -17,6 +17,7 @@ export interface FooterHintTheme {
|
||||
|
||||
export type FooterMode =
|
||||
| "mention"
|
||||
| "runtime"
|
||||
| "active"
|
||||
| "branch"
|
||||
| "command"
|
||||
@@ -53,6 +54,9 @@ function hintsFor(
|
||||
platform: string,
|
||||
shiftedEnter: boolean,
|
||||
): FooterHint[] {
|
||||
if (mode === "runtime") return width >= 64
|
||||
? [hint("↑↓/click", "choose"), hint("enter", "apply"), hint("esc", "close")]
|
||||
: [hint("enter", "apply"), hint("esc", "close")]
|
||||
if (mode === "mention") return width >= 64
|
||||
? [hint("↑↓", "choose"), hint("tab/enter", "insert"), hint("esc", "close")]
|
||||
: [hint("enter", "insert"), hint("esc", "close")]
|
||||
|
||||
Reference in New Issue
Block a user