mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-09-04 10:11:46 +03:00
feat(tui): autocomplete skill references
This commit is contained in:
@@ -17,6 +17,7 @@ export interface FooterHintTheme {
|
||||
|
||||
export type FooterMode =
|
||||
| "mention"
|
||||
| "skill"
|
||||
| "runtime"
|
||||
| "active"
|
||||
| "branch"
|
||||
@@ -117,7 +118,7 @@ function hintsFor(
|
||||
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
|
||||
if (mode === "mention" || mode === "skill") return width >= 64
|
||||
? [hint("↑↓", "choose"), hint("tab/enter", "insert"), hint("esc", "close")]
|
||||
: [hint("enter", "insert"), hint("esc", "close")]
|
||||
if (mode === "active") return []
|
||||
|
||||
Reference in New Issue
Block a user