taskreschedule

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultKeyMap = KeyMap{
	Today: key.NewBinding(
		key.WithKeys("0"),
		key.WithHelp("0", "reschedule to today"),
	),
	Tommorrow: key.NewBinding(
		key.WithKeys("1"),
		key.WithHelp("1", "reschedule to tomorrow"),
	),
	InTwoDays: key.NewBinding(
		key.WithKeys("2"),
		key.WithHelp("2", "reschedule in two days"),
	),
	InThreeDays: key.NewBinding(
		key.WithKeys("3"),
		key.WithHelp("3", "reschedule in three days"),
	),
	InFourDays: key.NewBinding(
		key.WithKeys("4"),
		key.WithHelp("4", "reschedule in four days"),
	),
	InFiveDays: key.NewBinding(
		key.WithKeys("5"),
		key.WithHelp("5", "reschedule in five days"),
	),
	InSixDays: key.NewBinding(
		key.WithKeys("6"),
		key.WithHelp("6", "reschedule in six days"),
	),
	InSevenDays: key.NewBinding(
		key.WithKeys("7"),
		key.WithHelp("7", "reschedule in seven days"),
	),
	InFortnight: key.NewBinding(
		key.WithKeys("f"),
		key.WithHelp("f", "reschedule in a fortnight (fourteen days)"),
	),
	NextMonth: key.NewBinding(
		key.WithKeys("m"),
		key.WithHelp("m", "reschedule to 1st of next month"),
	),
	NextYear: key.NewBinding(
		key.WithKeys("y"),
		key.WithHelp("y", "reschedule to 1st of next year"),
	),
}

Functions

This section is empty.

Types

type KeyMap

type KeyMap struct {
	Today       key.Binding
	Tommorrow   key.Binding
	InTwoDays   key.Binding
	InThreeDays key.Binding
	InFourDays  key.Binding
	InFiveDays  key.Binding
	InSixDays   key.Binding
	InSevenDays key.Binding
	InFortnight key.Binding
	NextMonth   key.Binding
	NextYear    key.Binding
}

type Model

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

func New

func New(ctx *context.ProgramContext, nd notedown.Client, task *tasks.Task) *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

Jump to

Keyboard shortcuts

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