ui

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BorderSize defines the width of panel borders (e.g., a single character for a rounded border).
	BorderSize = 1

	// PanelGap specifies the space between the file tree and preview panels when both are visible.
	PanelGap = 2

	// FileTreePaddingL is the left padding within the file tree panel.
	FileTreePaddingL = 1

	// FileTreePaddingR is the right padding within the file tree panel.
	FileTreePaddingR = 1

	// MinInnerContentWidth is the minimum internal width for panel content to ensure readability.
	MinInnerContentWidth = 10
)

Panel layout constants define sizing and spacing for UI elements.

View Source
const HelpText = `` /* 1886-byte string literal not displayed */
View Source
const UsageText = `` /* 2488-byte string literal not displayed */

Variables

This section is empty.

Functions

func GetStyleBorderedViewport

func GetStyleBorderedViewport() lipgloss.Style

GetStyleBorderedViewport returns the bordered viewport style using the current theme

func GetStyleError

func GetStyleError() lipgloss.Style

GetStyleError returns the error style using the current theme

func GetStyleFileTreePanelHeader added in v1.1.0

func GetStyleFileTreePanelHeader() lipgloss.Style

GetStyleFileTreePanelHeader returns the style for the file tree panel header

func GetStyleFormatIndicator

func GetStyleFormatIndicator() lipgloss.Style

GetStyleFormatIndicator returns the format indicator style using the current theme

func GetStyleHeader

func GetStyleHeader() lipgloss.Style

GetStyleHeader returns the header style using the current theme

func GetStyleHelp

func GetStyleHelp() lipgloss.Style

GetStyleHelp returns the help style using the current theme

func GetStyleHighlightedBorder added in v1.1.0

func GetStyleHighlightedBorder() lipgloss.Style

GetStyleHighlightedBorder returns a style for highlighted borders

func GetStyleInfo added in v1.0.3

func GetStyleInfo() lipgloss.Style

GetStyleInfo returns the info style using the current theme

func GetStylePreviewHeader added in v1.1.0

func GetStylePreviewHeader() lipgloss.Style

GetStylePreviewHeader returns the preview header style using the current theme

func GetStyleSearchCount

func GetStyleSearchCount() lipgloss.Style

GetStyleSearchCount returns the search count style using the current theme

func GetStyleSuccess

func GetStyleSuccess() lipgloss.Style

GetStyleSuccess returns the success style using the current theme

func GetStyleWarning added in v1.0.3

func GetStyleWarning() lipgloss.Style

GetStyleWarning returns the warning style using the current theme

func NewSearchInput

func NewSearchInput() textinput.Model

NewSearchInput creates a new search input with styling from the current theme

func StyleFileLine

func StyleFileLine(
	rawCheckbox string,
	treePrefix string,
	icon string,
	iconColor string,
	name string,
	rawSuffix string,
	isDir bool,
	isSelected bool,
	isCursor bool,
	isPartialDir bool,
	viewportWidth int,
) string

StyleFileLine styles a file line based on its properties and the current theme

func StylePreviewContent added in v1.1.0

func StylePreviewContent(content string, isFocused bool, viewportWidth int) string

StylePreviewContent styles the preview content when the preview panel is focused

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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