summaryrefslogtreecommitdiff
path: root/tui.go
diff options
context:
space:
mode:
Diffstat (limited to 'tui.go')
-rw-r--r--tui.go10
1 files changed, 9 insertions, 1 deletions
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