From 07b06bb0d32ce86b8aa1b8d6157eedca89c52152 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Mon, 2 Mar 2026 12:09:27 +0300 Subject: Enha: tabcompletion is back in textarea --- tui.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tui.go') 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]) -- cgit v1.2.3