Charm-based CLI with JSON persistence, status/list filters, external editor editing, command-history undo/redo, and glamour markdown without AutoStyle OSC hangs. Co-authored-by: Cursor <cursoragent@cursor.com>
15 lines
289 B
Go
15 lines
289 B
Go
package views
|
|
|
|
import (
|
|
"github.com/charmbracelet/bubbles/textinput"
|
|
)
|
|
|
|
// NewSearchInput returns a text input configured for search/filter.
|
|
func NewSearchInput() textinput.Model {
|
|
ti := textinput.New()
|
|
ti.Placeholder = "Filter tasks…"
|
|
ti.CharLimit = 100
|
|
ti.Width = 60
|
|
return ti
|
|
}
|