Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { *tview.Application // contains filtered or unexported fields }
Application is the entry point of TUI application.
func NewApplication ¶
func NewApplication(store *task.Store) *Application
NewApplication initializes and returns a new Application.
func (*Application) SetOpenHandler ¶
func (app *Application) SetOpenHandler(handler func(string))
SetOpenHandler sets a function to handle open event with file path.
func (*Application) StartAutoReload ¶
func (app *Application) StartAutoReload(eventStream <-chan task.Event)
StartAutoReload starts a goroutine to reload TUI with tasks received from passed channel.
type Table ¶
Table is the table view to show tasks.
func (*Table) DrawTasks ¶
func (t *Table) DrawTasks()
DrawTasks sets the content of tasks to cells and removes unused rows.
func (*Table) SetSelectedFunc ¶
SetSelectedFunc sets a function invoked with selected task when selection.
func (*Table) SetSelectionChangedFunc ¶
SetSelectionChangedFunc sets a function invoked with selected task when selection is changed.
Click to show internal directories.
Click to hide internal directories.