Documentation ¶
Index ¶
- Constants
- func GetWinsize() (*winsize, error)
- type Doughnut
- type InputHistoryRingBuffer
- type InputMode
- type Screen
- type TableRowIndex
- type Tabs
- type TaskRow
- type TaskTable
- func (m *TaskTable) CurrentTaskStarted() bool
- func (m *TaskTable) GetCurrentRow() TaskRow
- func (m *TaskTable) GetIdForCurrentRow() int64
- func (m *TaskTable) GetRowAtPos(pos int) TaskRow
- func (m TaskTable) HelpView() string
- func (m TaskTable) Init() tea.Cmd
- func (m *TaskTable) Notify(e *events.Event)
- func (m *TaskTable) Update(msg tea.Msg) (*TaskTable, tea.Cmd)
- func (m TaskTable) View() string
- type TextInput
- func (t *TextInput) CanQuit() bool
- func (t *TextInput) ClearErr()
- func (t *TextInput) Disable()
- func (t *TextInput) Disabled() bool
- func (t *TextInput) Enable()
- func (t *TextInput) Enabled() bool
- func (t *TextInput) Init() tea.Cmd
- func (t *TextInput) Update(msg tea.Msg) (*TextInput, tea.Cmd)
- func (t *TextInput) View() string
- type TickMsg
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 ¶
func GetWinsize ¶
func GetWinsize() (*winsize, error)
adapted from: https://www.darkcoding.net/software/pretty-command-line-console-output-on-unix-in-python-and-go-lang/
Types ¶
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 TableRowIndex ¶
type TableRowIndex int
type TaskTable ¶
type TaskTable struct { Table table.Model TaskIdsMatchingFilter []int64 // contains filtered or unexported fields }
func NewTaskTable ¶
func (*TaskTable) CurrentTaskStarted ¶
func (*TaskTable) GetCurrentRow ¶
func (*TaskTable) GetIdForCurrentRow ¶
func (*TaskTable) GetRowAtPos ¶
type TextInput ¶
type TextInput struct {
// contains filtered or unexported fields
}
func NewTextInput ¶
func NewTextInput(dimensions *utils.TerminalDimensions, bus *bus.Bus) *TextInput
Click to show internal directories.
Click to hide internal directories.