Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintItem ¶ added in v0.2.0
func PrintItem(a types.Actionable)
Types ¶
type CommandItem ¶ added in v0.2.0
type CommandItem struct {
types.Actionable
}
func (CommandItem) String ¶ added in v0.2.0
func (c CommandItem) String() string
type ListModel ¶
type ListModel struct {
// contains filtered or unexported fields
}
func NewListModel ¶ added in v0.2.0
func (ListModel) Selected ¶ added in v0.2.1
func (m ListModel) Selected() types.Actionable
type RealtimeSync ¶
type RealtimeSync struct {
// contains filtered or unexported fields
}
func NewRealtimeSync ¶
func NewRealtimeSync(p *tea.Program, repo data.Repository, ctx context.Context, ticker *time.Ticker) RealtimeSync
func (*RealtimeSync) KeepSynched ¶
func (r *RealtimeSync) KeepSynched()
type SelectableListModel ¶ added in v0.2.1
type SelectableListModel interface { tea.Model Selected() types.Actionable }
type TabbedListModel ¶ added in v0.2.0
type TabbedListModel struct {
// contains filtered or unexported fields
}
func NewTabbedListModel ¶ added in v0.2.0
func NewTabbedListModel(path string, list SelectableListModel, do doer, undo undoer, del deleter) TabbedListModel
func (TabbedListModel) Init ¶ added in v0.2.0
func (m TabbedListModel) Init() tea.Cmd
Init is the first function that will be called. It returns an optional initial command. To not perform an initial command return nil.
func (TabbedListModel) Update ¶ added in v0.2.0
Update is called when a message is received. Use it to inspect messages and, in response, update the model and/or send a command.
func (TabbedListModel) View ¶ added in v0.2.0
func (m TabbedListModel) View() string
View renders the program's UI, which is just a string. The view is rendered after every Update.
type UIItem ¶ added in v0.2.0
type UIItem struct {
types.Actionable
}
func (UIItem) Description ¶ added in v0.2.0
func (UIItem) FilterValue ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.