From 8351a9e084c9cc4a12a9319e14cf004cc2b2193b Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Thu, 20 Nov 2025 11:19:59 +0300 Subject: Feat: add filepicker --- tui.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tui.go') diff --git a/tui.go b/tui.go index faa01b9..c42b8d4 100644 --- a/tui.go +++ b/tui.go @@ -42,6 +42,7 @@ var ( propsPage = "propsPage" codeBlockPage = "codeBlockPage" imgPage = "imgPage" + filePickerPage = "filePicker" exportDir = "chat_exports" // help text helpText = ` @@ -62,8 +63,9 @@ var ( [yellow]Ctrl+w[white]: resume generation on the last msg [yellow]Ctrl+s[white]: load new char/agent [yellow]Ctrl+e[white]: export chat to json file -[yellow]Ctrl+n[white]: start a new chat [yellow]Ctrl+c[white]: close programm +[yellow]Ctrl+n[white]: start a new chat +[yellow]Ctrl+o[white]: open file picker [yellow]Ctrl+p[white]: props edit form (min-p, dry, etc.) [yellow]Ctrl+v[white]: switch between /completion and /chat api (if provided in config) [yellow]Ctrl+r[white]: start/stop recording from your microphone (needs stt server) @@ -742,6 +744,12 @@ func init() { startNewChat() return nil } + if event.Key() == tcell.KeyCtrlO { + // open file picker + filePicker := makeFilePicker() + pages.AddPage(filePickerPage, filePicker, true, true) + return nil + } if event.Key() == tcell.KeyCtrlL { go func() { fetchLCPModelName() // blocks -- cgit v1.2.3