summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-03-05 11:36:35 +0300
committerGrail Finder <wohilas@gmail.com>2026-03-05 11:36:35 +0300
commitc65c11bcfbc563611743d02039420533bcfe9d05 (patch)
tree1c8bb647c37442cda3945626914a202725b76f51
parent04f1fd464bf9bfcb80ea1e0cf0f1ca88091a5713 (diff)
Fix: shellmode tab completion
-rw-r--r--tui.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tui.go b/tui.go
index f744825..c6ab392 100644
--- a/tui.go
+++ b/tui.go
@@ -273,7 +273,7 @@ func init() {
shellHistoryPos = -1
}
// Handle Tab key for @ file completion
- if event.Key() == tcell.KeyTab {
+ if event.Key() == tcell.KeyTab && shellMode {
currentText := shellInput.GetText()
atIndex := strings.LastIndex(currentText, "@")
if atIndex >= 0 {
@@ -1151,7 +1151,7 @@ func init() {
chatRoundChan <- &models.ChatRoundReq{Role: persona, UserMsg: msgText}
return nil
}
- if event.Key() == tcell.KeyTab {
+ if event.Key() == tcell.KeyTab && !shellMode {
currentF := app.GetFocus()
if currentF == textArea {
currentText := textArea.GetText()