ui

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SearchStyle        = lipgloss.NewStyle().Foreground(lightColor).MarginLeft(leftMargin).PaddingBottom(1)
	NumberStyle        = lipgloss.NewStyle().Foreground(mutedColor)
	BranchStyle        = lipgloss.NewStyle().Foreground(lightColor)
	CurrentBranchStyle = lipgloss.NewStyle().Foreground(lightColor)
	SelectedStyle      = lipgloss.NewStyle().Foreground(primaryColor)
	HelpTextStyle      = lipgloss.NewStyle().Foreground(mutedColor)
)

Functions

func ClearLines

func ClearLines(count int)

func HorizontalLayout

func HorizontalLayout(leftContent, rightContent string, totalWidth int) string

func Run

func Run(branches []string, currentBranch string, initialQuery string) error

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

func NewModel

func NewModel(branches []string, currentBranch string, initialQuery string) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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