editor

package
v0.0.0-...-421e1c8 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloseMsg

type CloseMsg struct{}

type Mode

type Mode int
const (
	ModeNew Mode = iota
	ModeEdit
)

type Model

type Model struct {
	// contains filtered or unexported fields
}

func New

func New(s styles.Styles, mode Mode, t core.Task, preview bool) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) SetParentID

func (m *Model) SetParentID(id string)

func (*Model) SetPreview

func (m *Model) SetPreview(preview bool)

func (*Model) SetSize

func (m *Model) SetSize(w, h int)

func (Model) Update

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

func (Model) View

func (m Model) View() string

type SaveNewMsg

type SaveNewMsg struct{ Task core.Task }

type SavePatchMsg

type SavePatchMsg struct {
	ID    string
	Patch core.TaskPatch
}

type SelectParentMsg

type SelectParentMsg struct{}

Jump to

Keyboard shortcuts

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