Documentation
¶
Index ¶
- type Model
- func (m *Model) Blur()
- func (m *Model) ClearActiveRoot()
- func (m *Model) Focus()
- func (m *Model) Focused() bool
- func (m *Model) Init() tea.Cmd
- func (m *Model) Projects() []data.Project
- func (m *Model) SelectedRow() *Row
- func (m *Model) SetCanFocusRight(can bool)
- func (m *Model) SetProjects(projects []data.Project)
- func (m *Model) SetShowKeymapHints(show bool)
- func (m *Model) SetSize(width, height int)
- func (m *Model) SetStyles(styles common.Styles)
- func (m *Model) SetWorktreeCreating(wt *data.Worktree, creating bool) tea.Cmd
- func (m *Model) SetWorktreeDeleting(root string, deleting bool) tea.Cmd
- func (m *Model) Update(msg tea.Msg) (*Model, tea.Cmd)
- func (m *Model) View() string
- type Row
- type RowType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the Bubbletea model for the dashboard pane
func (*Model) ClearActiveRoot ¶
func (m *Model) ClearActiveRoot()
ClearActiveRoot resets the active worktree selection to "Home".
func (*Model) SelectedRow ¶
SelectedRow returns the currently selected row
func (*Model) SetCanFocusRight ¶
SetCanFocusRight controls whether focus-right hints should be shown.
func (*Model) SetProjects ¶
SetProjects sets the projects list
func (*Model) SetShowKeymapHints ¶
SetShowKeymapHints controls whether helper text is rendered.
func (*Model) SetWorktreeCreating ¶
SetWorktreeCreating marks a worktree as creating (or clears it).
func (*Model) SetWorktreeDeleting ¶
SetWorktreeDeleting marks a worktree as deleting (or clears it).
Click to show internal directories.
Click to hide internal directories.