summaryrefslogtreecommitdiff
path: root/tui.go
diff options
context:
space:
mode:
Diffstat (limited to 'tui.go')
-rw-r--r--tui.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/tui.go b/tui.go
index d1ca5f0..366f466 100644
--- a/tui.go
+++ b/tui.go
@@ -1071,6 +1071,18 @@ func init() {
chatRoundChan <- &models.ChatRoundReq{Role: persona, UserMsg: msgText}
return nil
}
+ if event.Key() == tcell.KeyTab {
+ currentF := app.GetFocus()
+ if currentF == textArea {
+ currentText := textArea.GetText()
+ atIndex := strings.LastIndex(currentText, "@")
+ if atIndex >= 0 {
+ filter := currentText[atIndex+1:]
+ showTextAreaFileCompletionPopup(filter)
+ }
+ }
+ return nil
+ }
if event.Key() == tcell.KeyPgUp || event.Key() == tcell.KeyPgDn {
currentF := app.GetFocus()
app.SetFocus(focusSwitcher[currentF])