Documentation
¶
Overview ¶
Package commits implements the commits panel for grut. It displays commit history for a specific branch or worktree, driven by branch/worktree selection messages from other panels. Unlike gitlog (which always follows HEAD with graph rendering), this panel is selection-driven and shows a flat commit list.
Index ¶
- type Panel
- func (p *Panel) Blur()
- func (p *Panel) Focus()
- func (p *Panel) Init(ctx context.Context) tea.Cmd
- func (p *Panel) KeyBindings() []panels.KeyBinding
- func (p *Panel) SetActionsCfg(cfg config.ActionsConfig)
- func (p *Panel) SetSize(width, height int)
- func (p *Panel) Title() string
- func (p *Panel) Update(msg tea.Msg) (panels.Panel, tea.Cmd)
- func (p *Panel) View(width, height int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Panel ¶
type Panel struct {
// contains filtered or unexported fields
}
Panel is the commits panel. It implements panels.Panel.
func (*Panel) Init ¶
--------------------------------------------------------------------------- panels.Panel interface --------------------------------------------------------------------------- Init implements panels.Panel.
func (*Panel) KeyBindings ¶
func (p *Panel) KeyBindings() []panels.KeyBinding
KeyBindings implements panels.Panel.
func (*Panel) SetActionsCfg ¶
func (p *Panel) SetActionsCfg(cfg config.ActionsConfig)
SetActionsCfg injects the actions configuration for right-click menus.