Documentation
¶
Overview ¶
Package gitinfo implements a combined panel that displays branches, worktrees, and remotes as switchable tabs within a single panel. Tabs are selected with 1/2/3 keys or by clicking the tab bar.
Branch-related operations for the gitinfo panel.
GitHub integration: issues, PRs, actions, workflows, and releases.
Modal result handlers for the gitinfo panel. Each handler corresponds to a pendingOp case extracted from handleModalResult.
Reflog-related operations for the gitinfo panel.
Remote-related operations for the gitinfo panel.
Stash-related operations for the gitinfo panel.
Tag-related operations for the gitinfo panel.
Worktree-related operations for the gitinfo panel.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IssueFilterKind ¶
type IssueFilterKind int
IssueFilterKind identifies the active quick-filter for the Issues tab.
func (IssueFilterKind) String ¶
func (f IssueFilterKind) String() string
type PRFilterKind ¶
type PRFilterKind int
PRFilterKind identifies the active quick-filter for the PRs tab.
func (PRFilterKind) String ¶
func (f PRFilterKind) String() string
type Panel ¶
--------------------------------------------------------------------------- Panel --------------------------------------------------------------------------- Panel is the gitinfo panel. It implements panels.Panel.
func New ¶
func New(gitOps gitOps, cfg config.GitConfig, ghCfg config.GitHubConfig, actionsCfg config.ActionsConfig, repoRoot, iconMode string, th *theme.Theme) *Panel
New creates a new gitinfo panel showing only git tabs (branches, worktrees, remotes, stash, tags, reflog).
func NewFromConfig ¶ added in v0.3.4
func NewFromConfig(cfg PanelConfig, mode PanelMode, title string, defaultTab tabID) *Panel
NewFromConfig creates a gitinfo panel from the given configuration.
func NewGitHub ¶
func NewGitHub(gitOps gitOps, cfg config.GitConfig, ghCfg config.GitHubConfig, actionsCfg config.ActionsConfig, repoRoot, iconMode string, th *theme.Theme) *Panel
NewGitHub creates a gitinfo panel showing only GitHub tabs (issues, PRs, actions, workflows, releases).
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) SetActiveTab ¶
SetActiveTab switches the active tab by name. Valid names: "branches", "worktrees", "remotes", "stash", "tags", "reflog", "issues", "prs", "actions".
type PanelConfig ¶ added in v0.3.4
type PanelConfig struct {
GitOps gitOps
GitCfg config.GitConfig
GitHubCfg config.GitHubConfig
ActionsCfg config.ActionsConfig
RepoRoot string
IconMode string
Theme *theme.Theme
}
PanelConfig holds the configuration parameters for creating a gitinfo panel. It reduces the parameter count of New and NewGitHub constructors.