Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllTabs = []TabMeta{ {TabStatus, "Status", "●", "s", "core"}, {TabDiff, "Diff", "±", "d", "core"}, {TabLog, "Log", "◆", "l", "core"}, {TabBranches, "Branches", "⑂", "b", "branch"}, {TabRemotes, "Remotes", "⇄", "m", "branch"}, {TabStash, "Stash", "⊟", "t", "branch"}, {TabRebase, "Rebase", "↻", "e", "advanced"}, {TabConflicts, "Conflicts", "⚡", "x", "advanced"}, {TabWorktrees, "Worktrees", "⌥", "w", "advanced"}, {TabBisect, "Bisect", "◎", "i", "advanced"}, }
AllTabs is the ordered list of all tabs, grouped logically. Navigation: Tab/Shift+Tab cycles through them, or use the shortcut key.
Functions ¶
func CmdRefresh ¶
CmdRefresh returns a RefreshMsg (use as return from tea.Cmd).
Types ¶
type TabMeta ¶
type TabMeta struct {
ID TabID
Name string // Display name shown in the tab bar.
Icon string // Unicode icon (nerdfont-free, works in all terminals).
Shortcut string // Mnemonic shortcut hint displayed in the tab (e.g., "s").
Group string // Logical group: "core", "history", "branch", "advanced".
}
TabMeta describes a tab for display purposes.
type View ¶
type View interface {
Init() tea.Cmd
Update(msg tea.Msg) (View, tea.Cmd)
View() string
SetSize(width, height int)
ShortHelp() []components.HelpEntry
// InputCapture returns true when the view is in a text-input mode
// (e.g. commit message editing) and wants to capture arrow keys,
// letters, etc. instead of letting the app handle them for tab
// switching.
InputCapture() bool
}
View is the interface every tab view must implement.
Click to show internal directories.
Click to hide internal directories.