presentation

package
v0.39.3 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EXPANDED_ARROW  = "▼"
	COLLAPSED_ARROW = "▶"
)
View Source
const (
	INNER_ITEM = "  "
	LAST_ITEM  = "  "
	NESTED     = "  "
	NOTHING    = "  "
)

keeping these here as individual constants in case later on people want the old tree shape

Variables

This section is empty.

Functions

func BranchStatus added in v0.30.1

func BranchStatus(branch *models.Branch, tr *i18n.TranslationSet) string

func ColoredBranchStatus added in v0.30.1

func ColoredBranchStatus(branch *models.Branch, tr *i18n.TranslationSet) string

func FormatWorkingTreeStateLower added in v0.39.0

func FormatWorkingTreeStateLower(tr *i18n.TranslationSet, rebaseMode enums.RebaseMode) string

func FormatWorkingTreeStateTitle added in v0.39.0

func FormatWorkingTreeStateTitle(tr *i18n.TranslationSet, rebaseMode enums.RebaseMode) string

func GetBranchListDisplayStrings

func GetBranchListDisplayStrings(
	branches []*models.Branch,
	fullDescription bool,
	diffName string,
	tr *i18n.TranslationSet,
	userConfig *config.UserConfig,
) [][]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,
	fullDescription bool,
	cherryPickedCommitShaSet *set.Set[string],
	diffName string,
	timeFormat string,
	shortTimeFormat string,
	now time.Time,
	parseEmoji bool,
	selectedCommitSha string,
	startIdx int,
	length int,
	showGraph bool,
	bisectInfo *git_commands.BisectInfo,
	showYouAreHereLabel bool,
) [][]string

func GetReflogCommitListDisplayStrings added in v0.20.1

func GetReflogCommitListDisplayStrings(commits []*models.Commit, fullDescription bool, cherryPickedCommitShaSet *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) [][]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, diffName string) [][]string

func OpensMenuStyle added in v0.35.0

func OpensMenuStyle(str string) string

func RenderCommitFileTree added in v0.35.0

func RenderCommitFileTree(
	tree *filetree.CommitFileTreeViewModel,
	diffName string,
	patchBuilder *patch.PatchBuilder,
) []string

func RenderFileTree added in v0.35.0

func RenderFileTree(
	tree filetree.IFileTree,
	diffName string,
	submoduleConfigs []*models.SubmoduleConfig,
) []string

func SetCustomBranches added in v0.35.0

func SetCustomBranches(customBranchColors map[string]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