projectmanager

package
v0.0.0-...-a02a1e0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultKeyMap = KeyMap{
	ToggleFocus: key.NewBinding(
		key.WithKeys("tab"),
		key.WithHelp("tab", "toggle metadata tasks list and completed tasks list"),
	),
	CursorUp: key.NewBinding(
		key.WithKeys("k", "up"),
		key.WithHelp("↑/k", "move cursor up"),
	),
	CursorDown: key.NewBinding(
		key.WithKeys("j", "down"),
		key.WithHelp("↓/j", "move cursor down"),
	),
	AddTask: key.NewBinding(
		key.WithKeys("a"),
		key.WithHelp("a", "add a new task"),
	),
	EditTask: key.NewBinding(
		key.WithKeys("e", "enter"),
		key.WithHelp("e/enter", "edit the selected task"),
	),
	DeleteTask: key.NewBinding(
		key.WithKeys("d"),
		key.WithHelp("d", "delete the selected task"),
	),
	RescheduleTask: key.NewBinding(
		key.WithKeys("r"),
		key.WithHelp("r", "reschedule the selected task"),
	),
	CompleteTask: key.NewBinding(
		key.WithKeys("x"),
		key.WithHelp("x", "complete the selected task"),
	),
}

Functions

This section is empty.

Types

type KeyMap

type KeyMap struct {
	ToggleFocus key.Binding

	CursorUp   key.Binding
	CursorDown key.Binding

	AddTask        key.Binding
	EditTask       key.Binding
	DeleteTask     key.Binding
	RescheduleTask key.Binding
	CompleteTask   key.Binding
}

type Model

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

func New

func New(ctx *context.ProgramContext, nd notedown.Client, project projects.Project) *Model

func (*Model) Init

func (m *Model) Init() (tea.Model, tea.Cmd)

func (*Model) Update

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

func (*Model) View

func (m *Model) View() string

type Status

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

func NewStatus

func NewStatus(ctx *context.ProgramContext, value projects.Status) *Status

func (*Status) Blur

func (s *Status) Blur() *Status

func (*Status) Focus

func (s *Status) Focus() *Status

func (*Status) Init

func (s *Status) Init() (tea.Model, tea.Cmd)

func (*Status) Margin

func (s *Status) Margin(i ...int) *Status

func (*Status) SetValue

func (s *Status) SetValue(value projects.Status)

func (*Status) Update

func (s *Status) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Status) Value

func (s Status) Value() projects.Status

func (*Status) View

func (s *Status) View() string

type Text

type Text struct {
	IsValid bool
	// contains filtered or unexported fields
}

func NewText

func NewText(ctx *context.ProgramContext, name string) *Text

func (Text) AtBeginning

func (t Text) AtBeginning() bool

func (*Text) Blur

func (t *Text) Blur() *Text

func (Text) Cursor

func (t Text) Cursor() int

func (*Text) Focus

func (t *Text) Focus() *Text

func (*Text) Init

func (t *Text) Init() (tea.Model, tea.Cmd)

func (*Text) SetCursor

func (t *Text) SetCursor(i int)

func (*Text) SetValue

func (t *Text) SetValue(s string) *Text

func (*Text) Update

func (t *Text) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Text) Value

func (t Text) Value() string

func (*Text) View

func (s *Text) View() string

func (*Text) Width

func (t *Text) Width(i int) *Text

Jump to

Keyboard shortcuts

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