Help us shape the future of Go! Take the 2026 Go Developer Survey

tui

package
v0.0.0-...-205b4fa Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EMPTY_GROUP_PLACEHOLDER = "(No entries)"
	NO_TITLE_PLACEHOLDER    = "(No title)"
	NUM_COL_WIDTH           = 3
)
View Source
const CLEAR_CLIPBOARD_DELAY = 10
View Source
const ENCRYPTED_PLACEH = "•"
View Source
const ERR_TOO_FEW_ARGS = "Error: Too few arguments"
View Source
const ERR_TOO_MANY_ARGS = "Error: Too many arguments"
View Source
const INITIAL_MESSAGE = "Ready."
View Source
const PROMPT_COMMAND = ":"
View Source
const PROMPT_REV_SEARCH = "?"
View Source
const PROMPT_SEARCH = "/"
View Source
const TABLE_SPACING = 1

Variables

This section is empty.

Functions

func CommandCallback

func CommandCallback(s string) tea.Cmd

Types

type CmdLineInputCallback

type CmdLineInputCallback func(string) tea.Cmd

func SearchCallback

func SearchCallback(reverse bool) CmdLineInputCallback

type CommandLine

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

func NewCommandLine

func NewCommandLine() CommandLine

func (CommandLine) Focused

func (c CommandLine) Focused() bool

func (CommandLine) GetHeight

func (c CommandLine) GetHeight() int

func (CommandLine) Init

func (c CommandLine) Init() tea.Cmd

func (*CommandLine) SetMessage

func (c *CommandLine) SetMessage(msg string)

func (*CommandLine) StartInput

func (c *CommandLine) StartInput(prompt string, callback CmdLineInputCallback) tea.Cmd

func (*CommandLine) StartInputWithValue

func (c *CommandLine) StartInputWithValue(prompt string, callback CmdLineInputCallback, initialValue string) tea.Cmd

func (CommandLine) Update

func (c CommandLine) Update(msg tea.Msg) (CommandLine, tea.Cmd)

func (CommandLine) View

func (c CommandLine) View() string

type FileSelector

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

func NewFileSelector

func NewFileSelector() FileSelector

func (FileSelector) Init

func (m FileSelector) Init() tea.Cmd

func (FileSelector) Update

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

func (FileSelector) View

func (m FileSelector) View() string

type MainModel

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

func NewMainModel

func NewMainModel(d *database.Database) MainModel

func (MainModel) Init

func (m MainModel) Init() tea.Cmd

func (MainModel) Update

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

func (MainModel) View

func (m MainModel) View() string
type Navigate struct {
	// contains filtered or unexported fields
}

func NewNavigate

func NewNavigate(database *database.Database, windowWidth, windowHeight int) Navigate
func (n Navigate) Init() tea.Cmd
func (n Navigate) Update(msg tea.Msg) (tea.Model, tea.Cmd)
func (n Navigate) View() string

type PasswordInput

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

func NewPasswordInput

func NewPasswordInput(database *database.Database, windowWidth, windowHeight int) PasswordInput

func (PasswordInput) Init

func (m PasswordInput) Init() tea.Cmd

func (PasswordInput) Update

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

func (PasswordInput) View

func (m PasswordInput) View() string

Jump to

Keyboard shortcuts

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