components

package
v0.0.0-...-4aab756 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TableColumnID int = iota
	TableColumnStarted
	TableColumnName
	TableColumnAge
	TableColumnPriority
	TableColumnProject
	TableColumnTags
	TableColumnDependencies
	TableColumnUrgency
)
View Source
const K2 = 5.0
View Source
const NOID int64 = -1
View Source
const R1 = 1.0
View Source
const R2 = 2.0
View Source
const RINGBUFFER_SIZE = 30

Variables

This section is empty.

Functions

Types

type Doughnut

type Doughnut struct {
	Interval time.Duration
	// contains filtered or unexported fields
}

func NewDonut

func NewDonut(dimensions *utils.TerminalDimensions) *Doughnut

func (*Doughnut) Init

func (d *Doughnut) Init() tea.Cmd

func (*Doughnut) Update

func (d *Doughnut) Update(msg tea.Msg) (*Doughnut, tea.Cmd)

func (*Doughnut) View

func (d *Doughnut) View() string

type InputHistoryRingBuffer

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

func NewInputHistoryRingBuffer

func NewInputHistoryRingBuffer() *InputHistoryRingBuffer

func (*InputHistoryRingBuffer) Add

func (r *InputHistoryRingBuffer) Add(input string)

func (*InputHistoryRingBuffer) Get

func (r *InputHistoryRingBuffer) Get(index int) string

func (*InputHistoryRingBuffer) GetNext

func (r *InputHistoryRingBuffer) GetNext() string

func (*InputHistoryRingBuffer) GetPrevious

func (r *InputHistoryRingBuffer) GetPrevious() string

type InputMode

type InputMode int
const (
	InputModeNone InputMode = iota
	InputModeCmd
	InputModeSearch
)

type Screen

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

type TableRowIndex

type TableRowIndex int

type Tabs

type Tabs struct {
	Tabs      []string
	ActiveTab int
}

func NewTabs

func NewTabs() *Tabs

func (Tabs) Init

func (m Tabs) Init() tea.Cmd

func (Tabs) Update

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

func (Tabs) View

func (model Tabs) View() string

type TaskRow

type TaskRow table.Row

func (TaskRow) ID

func (r TaskRow) ID() int64

func (TaskRow) PriorityStr

func (r TaskRow) PriorityStr() string

func (TaskRow) Started

func (r TaskRow) Started() bool

func (TaskRow) Title

func (r TaskRow) Title() string

func (TaskRow) UrgencyStr

func (r TaskRow) UrgencyStr() string

type TaskTable

type TaskTable struct {
	Table table.Model

	TaskIdsMatchingFilter []int64
	// contains filtered or unexported fields
}

func NewTaskTable

func NewTaskTable(baseStyle lipgloss.Style, dimensions *utils.TerminalDimensions, theme *utils.Theme, bus *bus.Bus) *TaskTable

func (*TaskTable) CurrentTaskStarted

func (m *TaskTable) CurrentTaskStarted() bool

func (*TaskTable) GetCurrentRow

func (m *TaskTable) GetCurrentRow() TaskRow

func (*TaskTable) GetIdForCurrentRow

func (m *TaskTable) GetIdForCurrentRow() int64

func (*TaskTable) GetRowAtPos

func (m *TaskTable) GetRowAtPos(pos int) TaskRow

func (TaskTable) HelpView

func (m TaskTable) HelpView() string

func (TaskTable) Init

func (m TaskTable) Init() tea.Cmd

func (*TaskTable) Notify

func (m *TaskTable) Notify(e *events.Event)

func (*TaskTable) Update

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

func (TaskTable) View

func (m TaskTable) View() string

type TextInput

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

func NewTextInput

func NewTextInput(dimensions *utils.TerminalDimensions, bus *bus.Bus) *TextInput

func (*TextInput) CanQuit

func (t *TextInput) CanQuit() bool

func (*TextInput) ClearErr

func (t *TextInput) ClearErr()

func (*TextInput) Disable

func (t *TextInput) Disable()

func (*TextInput) Disabled

func (t *TextInput) Disabled() bool

func (*TextInput) Enable

func (t *TextInput) Enable()

func (*TextInput) Enabled

func (t *TextInput) Enabled() bool

func (*TextInput) Init

func (t *TextInput) Init() tea.Cmd

func (*TextInput) Update

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

func (*TextInput) View

func (t *TextInput) View() string

type TickMsg

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

Jump to

Keyboard shortcuts

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