gitinfo

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 18 Imported by: 0

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.

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

type Panel struct {
	panels.BasePanel
	// contains filtered or unexported fields
}

--------------------------------------------------------------------------- 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) *Panel

New creates a new gitinfo panel showing only git tabs (branches, worktrees, remotes, stash, tags, reflog).

func NewGitHub

func NewGitHub(gitOps gitOps, cfg config.GitConfig, ghCfg config.GitHubConfig, actionsCfg config.ActionsConfig, repoRoot, iconMode string) *Panel

NewGitHub creates a gitinfo panel showing only GitHub tabs (issues, PRs, actions, workflows, releases).

func (*Panel) Init

func (p *Panel) Init(ctx context.Context) tea.Cmd

--------------------------------------------------------------------------- panels.Panel interface --------------------------------------------------------------------------- Init implements panels.Panel.

func (*Panel) KeyBindings

func (p *Panel) KeyBindings() []panels.KeyBinding

KeyBindings implements panels.Panel.

func (*Panel) SetActiveTab

func (p *Panel) SetActiveTab(name string)

SetActiveTab switches the active tab by name. Valid names: "branches", "worktrees", "remotes", "stash", "tags", "reflog", "issues", "prs", "actions".

func (*Panel) Title

func (p *Panel) Title() string

Title implements panels.Panel, overriding BasePanel.

func (*Panel) Update

func (p *Panel) Update(msg tea.Msg) (panels.Panel, tea.Cmd)

Update implements panels.Panel.

func (*Panel) View

func (p *Panel) View(width, height int) string

View implements panels.Panel.

type PanelMode

type PanelMode int

PanelMode controls which subset of tabs a gitinfo panel displays.

const (
	ModeAll    PanelMode = iota // show all tabs (backwards compat)
	ModeGit                     // git tabs only: branches, worktrees, remotes, stash, tags, reflog
	ModeGitHub                  // GitHub tabs only: issues, PRs, actions, workflows, releases
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL