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
296 B
Go
15 lines
296 B
Go
package views
|
|
|
|
import (
|
|
"github.com/charmbracelet/bubbles/textinput"
|
|
)
|
|
|
|
// NewCreateInput returns a text input configured for creating a ticket.
|
|
func NewCreateInput() textinput.Model {
|
|
ti := textinput.New()
|
|
ti.Placeholder = "Ticket headline…"
|
|
ti.CharLimit = 200
|
|
ti.Width = 60
|
|
return ti
|
|
}
|