taskpopup

package
v2.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteForm

type DeleteForm struct {
	Width  int
	Height int
	// contains filtered or unexported fields
}

func NewDeleteForm

func NewDeleteForm(w int, h int) *DeleteForm

func (DeleteForm) GetText

func (m DeleteForm) GetText() string

func (DeleteForm) Init

func (m DeleteForm) Init() tea.Cmd

func (*DeleteForm) Update

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

func (*DeleteForm) View

func (m *DeleteForm) View() string

type Form

type Form struct {
	Width      int
	Height     int
	Keymap     keymap.TaskFormMap
	TitleInput textinput.Model
	DescInput  textarea.Model
}

func NewForm

func NewForm(w int, h int) *Form

func (*Form) AreaView

func (m *Form) AreaView() string

func (Form) Init

func (m Form) Init() tea.Cmd

func (*Form) InputView

func (m *Form) InputView() string

func (*Form) Update

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

func (*Form) View

func (m *Form) View() string

type SelectStatus

type SelectStatus struct {
	Width    int
	Height   int
	Opts     []enums.TaskStatus
	TitleMap map[enums.TaskStatus]string
	Selected int
}

func NewSelect

func NewSelect(w int, h int) *SelectStatus

func (SelectStatus) GetText

func (m SelectStatus) GetText() string

func (SelectStatus) Init

func (m SelectStatus) Init() tea.Cmd

func (*SelectStatus) Update

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

func (*SelectStatus) View

func (m *SelectStatus) View() string

type TaskPopup

type TaskPopup struct {
	Width      int
	Height     int
	Type       enums.TaskPopup
	Keymap     keymap.TaskPopupMap
	Help       help.Model
	Form       *Form
	Select     *SelectStatus
	DeleteForm *DeleteForm
	ShowSelect bool
}

func NewPopup

func NewPopup(w int, h int, typ enums.TaskPopup) *TaskPopup

func (*TaskPopup) Init

func (m *TaskPopup) Init() tea.Cmd

func (*TaskPopup) Update

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

func (*TaskPopup) View

func (m *TaskPopup) View() string

Jump to

Keyboard shortcuts

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