diff options
| author | Grail Finder <wohilas@gmail.com> | 2026-03-02 12:09:27 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2026-03-02 12:09:27 +0300 |
| commit | 07b06bb0d32ce86b8aa1b8d6157eedca89c52152 (patch) | |
| tree | d969997ac2555044b4c931b065f55b4880d9627c /tui.go | |
| parent | 3389b1d83bc9fcc605fdff813c826410d07cfe28 (diff) | |
Enha: tabcompletion is back in textarea
Diffstat (limited to 'tui.go')
| -rw-r--r-- | tui.go | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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]) |
