editmenu

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EditTaskKeyMap

type EditTaskKeyMap struct {
	SaveField      key.Binding
	EscapeEditMode key.Binding
	SaveTask       key.Binding
	Help           key.Binding
	Quit           key.Binding
}

func (EditTaskKeyMap) FullHelp

func (e EditTaskKeyMap) FullHelp() [][]key.Binding

func (EditTaskKeyMap) ShortHelp

func (e EditTaskKeyMap) ShortHelp() []key.Binding

type ErrorMsg

type ErrorMsg struct {
	ErrorStr string
}

type EscapeEditMsg

type EscapeEditMsg struct{}

type Model

type Model struct {
	Title     string
	TaskID    uuid.UUID
	TaskTitle textinput.Model
	Desc      textinput.Model

	IsNew bool

	DatePicker datepicker.Model
	// contains filtered or unexported fields
}

func New

func New(width, height int) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) SetShowHelp

func (m *Model) SetShowHelp(v bool)

SetShowHelp shows or hides the help view.

func (*Model) SetShowTitle

func (m *Model) SetShowTitle(v bool)

func (*Model) SetSize

func (m *Model) SetSize(width int, height int)

func (Model) ShowHelp

func (m Model) ShowHelp() bool

ShowHelp returns whether or not the help is set to be rendered.

func (Model) ShowTitle

func (m Model) ShowTitle() bool

func (Model) Update

func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type SaveTaskMsg

type SaveTaskMsg struct {
	TaskID uuid.UUID
	Title  string
	Desc   string
	Date   time.Time
	Done   bool
	IsNew  bool
}

type Styles

type Styles struct {
	TitleBar lipgloss.Style
	Title    lipgloss.Style

	HelpStyle lipgloss.Style

	Focused lipgloss.Style
	Blurred lipgloss.Style
	Normal  lipgloss.Style

	StatusMessage lipgloss.Style
}

func DefaultStyles

func DefaultStyles() (s Styles)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL