@@ -49,7 +49,7 @@ type editorCmp struct {
49 currentQuery string
49 currentQuery string
50 completionsStartIndex int
50 completionsStartIndex int
51 isCompletionsOpen bool
51 isCompletionsOpen bool
53 // Debouncing for completions
53 // Debouncing for completions
54 debounceTimer *time.Timer
54 debounceTimer *time.Timer
@@ -153,10 +153,10 @@ func (m *editorCmp) debouncedCompletionFilter() tea.Cmd {
153 if m.debounceTimer != nil {
153 if m.debounceTimer != nil {
154 m.debounceTimer.Stop()
154 m.debounceTimer.Stop()
157 // Create new timer for debouncing
157 // Create new timer for debouncing
158 m.debounceTimer = time.NewTimer(150 * time.Millisecond)
158 m.debounceTimer = time.NewTimer(150 * time.Millisecond)
160 return func() tea.Msg {
160 return func() tea.Msg {
161 <-m.debounceTimer.C
161 <-m.debounceTimer.C
162 return CompletionDebounceMsg{}
162 return CompletionDebounceMsg{}
@@ -290,7 +290,7 @@ func (m *editorCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
294 m.textarea, cmd = m.textarea.Update(msg)
294 m.textarea, cmd = m.textarea.Update(msg)
295 cmds = append(cmds, cmd)
295 cmds = append(cmds, cmd)
296 return m, tea.Batch(cmds...)
296 return m, tea.Batch(cmds...)