presentation

package
v0.66.3 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 24 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	EXPANDED_ARROW  = "▼"
	COLLAPSED_ARROW = "▶"
)

Variables

This section is empty.

Functions

func BranchStatus added in v0.30.1

func BranchStatus(
	branch *models.Branch,
	itemOperation types.ItemOperation,
	tr *i18n.TranslationSet,
	now time.Time,
	userConfig *config.UserConfig,
) string

func FormatPullRequestHeader added in v0.64.0

func FormatPullRequestHeader(pr *models.GithubPullRequest, tr *i18n.TranslationSet) string

func FormatStatus added in v0.40.0

func FormatStatus(
	repoName string,
	currentBranch *models.Branch,
	itemOperation types.ItemOperation,
	linkedWorktreeName string,
	workingTreeState models.WorkingTreeState,
	tr *i18n.TranslationSet,
	userConfig *config.UserConfig,
) string

func GetBranchListDisplayStrings

func GetBranchListDisplayStrings(
	branches []*models.Branch,
	getItemOperation func(item types.HasUrn) types.ItemOperation,
	prs map[string]*models.GithubPullRequest,
	fullDescription bool,
	diffName string,
	viewWidth int,
	tr *i18n.TranslationSet,
	userConfig *config.UserConfig,
	worktrees []*models.Worktree,
) [][]string

func GetBranchTextStyle added in v0.30.1

func GetBranchTextStyle(name string) style.TextStyle

GetBranchTextStyle branch color

func GetCommitListDisplayStrings

func GetCommitListDisplayStrings(
	common *common.Common,
	commits []*models.Commit,
	branches []*models.Branch,
	currentBranchName string,
	hasRebaseUpdateRefsConfig bool,
	fullDescription bool,
	cherryPickedCommitHashSet *set.Set[string],
	diffName string,
	markedBaseCommit string,
	timeFormat string,
	shortTimeFormat string,
	now time.Time,
	parseEmoji bool,
	selectedCommitHashPtr *string,
	startIdx int,
	endIdx int,
	showGraph bool,
	graphSymbolSet graph.SymbolSet,
	bisectInfo *git_commands.BisectInfo,
) [][]string

func GetReflogCommitListDisplayStrings added in v0.20.1

func GetReflogCommitListDisplayStrings(commits []*models.Commit, startIdx int, endIdx int, fullDescription bool, cherryPickedCommitHashSet *set.Set[string], diffName string, now time.Time, timeFormat string, shortTimeFormat string, parseEmoji bool) [][]string

func GetRemoteBranchListDisplayStrings

func GetRemoteBranchListDisplayStrings(branches []*models.RemoteBranch, diffName string) [][]string

func GetRemoteListDisplayStrings

func GetRemoteListDisplayStrings(
	remotes []*models.Remote,
	diffName string,
	getItemOperation func(item types.HasUrn) types.ItemOperation,
	tr *i18n.TranslationSet,
	userConfig *config.UserConfig,
) [][]string

func GetStashEntryListDisplayStrings

func GetStashEntryListDisplayStrings(stashEntries []*models.StashEntry, diffName string) [][]string

func GetSubmoduleListDisplayStrings added in v0.23.1

func GetSubmoduleListDisplayStrings(submodules []*models.SubmoduleConfig) [][]string

func GetSuggestionListDisplayStrings added in v0.24.1

func GetSuggestionListDisplayStrings(suggestions []*types.Suggestion) [][]string

func GetTagListDisplayStrings

func GetTagListDisplayStrings(
	tags []*models.Tag,
	getItemOperation func(item types.HasUrn) types.ItemOperation,
	diffName string,
	tr *i18n.TranslationSet,
	userConfig *config.UserConfig,
) [][]string

func GetWorktreeDisplayString added in v0.40.0

func GetWorktreeDisplayString(tr *i18n.TranslationSet, worktree *models.Worktree) []string

func GetWorktreeDisplayStrings added in v0.40.0

func GetWorktreeDisplayStrings(tr *i18n.TranslationSet, worktrees []*models.Worktree) [][]string

func ItemOperationToString added in v0.41.0

func ItemOperationToString(itemOperation types.ItemOperation, tr *i18n.TranslationSet) string

func Loader added in v0.51.0

func Loader(now time.Time, config config.SpinnerConfig) string

Loader dumps a string to be displayed as a loader

func RenderCommitFileTree added in v0.35.0

func RenderCommitFileTree(
	tree *filetree.CommitFileTreeViewModel,
	patchBuilder *patch.PatchBuilder,
	showFileIcons bool,
	customIconsConfig *config.CustomIconsConfig,
) []string

func RenderFileTree added in v0.35.0

func RenderFileTree(
	tree filetree.IFileTree,
	submoduleConfigs []*models.SubmoduleConfig,
	showFileIcons bool,
	showNumstat bool,
	customIconsConfig *config.CustomIconsConfig,
	showRootItem bool,
	tr *i18n.TranslationSet,
) []string

func SetCustomBranches added in v0.35.0

func SetCustomBranches(patterns config.ColorPatterns)

func ShouldShowPrForBranch added in v0.61.1

func ShouldShowPrForBranch(pr *models.GithubPullRequest, branchName string, userConfig *config.UserConfig) bool

func WithPrColor added in v0.62.0

func WithPrColor(state string, text string, isBg bool) string

Types

type BisectStatus added in v0.35.0

type BisectStatus int

similar to the git_commands.BisectStatus but more gui-focused

const (
	BisectStatusNone BisectStatus = iota
	BisectStatusOld
	BisectStatusNew
	BisectStatusSkipped
	// adding candidate here which isn't present in the commands package because
	// we need to actually go through the commits to get this info
	BisectStatusCandidate
	// also adding this
	BisectStatusCurrent
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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