Tony Grosinger
461812eace
Description, date, and total fields are functional. Next step is to start adding structure to the form and adding a window to the side which will show previous similar transactions and autocomplete suggestions. Arrow keys will be able to auto-fill the current field from the selected suggestion.
19 lines
233 B
Go
19 lines
233 B
Go
package dateinput
|
|
|
|
import tea "github.com/charmbracelet/bubbletea"
|
|
|
|
type Msg int
|
|
|
|
const (
|
|
NextInputMsg Msg = iota
|
|
PrevInputMsg
|
|
)
|
|
|
|
func NextInput() tea.Msg {
|
|
return NextInputMsg
|
|
}
|
|
|
|
func PrevInput() tea.Msg {
|
|
return PrevInputMsg
|
|
}
|