dialog

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BrowseKey opens a file browser from a dialog with a path input. It is a
	// chord, not a printable character: a printable one cannot be reserved
	// while a text input has focus, which is what made a path containing an
	// "f" impossible to type (#525).
	BrowseKey = "ctrl+o"

	// BrowseHint marks a path input with the browse key. Caret notation keeps
	// it 11 cells — the width the dialogs are already laid out around.
	BrowseHint = "[^o Browse]"

	// BrowseHelpKey is how the browse key appears in a dialog's help line.
	BrowseHelpKey = "<ctrl+o>"
)

Shared dialog keys used across views, so a handler and the help text that advertises it cannot drift apart.

Variables

View Source
var (
	TitleStyle = lipgloss.NewStyle().
				Bold(true).
				Foreground(lipgloss.Color("15")).
				Background(lipgloss.Color("63")).
				Padding(0, 1)

	BorderStyle = lipgloss.NewStyle().
				Border(lipgloss.RoundedBorder()).
				BorderForeground(lipgloss.Color("117"))

	ItemStyle = lipgloss.NewStyle().
				Padding(0, 1)

	SelectedStyle = lipgloss.NewStyle().
					Foreground(lipgloss.Color("15")).
					Background(lipgloss.Color("63")).
					Padding(0, 1)

	HelpStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("240")).
				Padding(0, 1)

	KeyStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("63")).
				Bold(true)
)

Shared dialog styles used across views for consistent dialog rendering.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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