app

package
v0.0.0-...-488d456 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyMap

type KeyMap struct {
	Up           key.Binding
	Down         key.Binding
	Left         key.Binding
	Right        key.Binding
	NewTab       key.Binding
	New          key.Binding
	Delete       key.Binding
	DeleteBucket key.Binding
	Enter        key.Binding
	Esc          key.Binding
	Quit         key.Binding
	Help         key.Binding
	PrevTab      key.Binding
	NextTab      key.Binding
	SelectTab    key.Binding
	Edit         key.Binding
	EditBucket   key.Binding
}

KeyMap defines keybindings

func DefaultKeyMap

func DefaultKeyMap() KeyMap

DefaultKeyMap returns default keybindings

func (KeyMap) FullHelp

func (k KeyMap) FullHelp() [][]key.Binding

FullHelp returns keybindings for the expanded help view. It's part of the help.KeyMap interface.

func (KeyMap) ShortHelp

func (k KeyMap) ShortHelp() []key.Binding

ShortHelp returns keybindings to be shown in the short help view. It's part of the help.KeyMap interface.

type Model

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

func New

func New(dbPath string) (*Model, error)

func (*Model) Close

func (m *Model) Close()

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

type Styles

type Styles struct {
	Tab            lipgloss.Style
	ActiveTab      lipgloss.Style
	TabBorder      lipgloss.Style
	TabBorderRight lipgloss.Style
	Header         lipgloss.Style
	Cell           lipgloss.Style
	Selected       lipgloss.Style
	Help           lipgloss.Style
	Title          lipgloss.Style
}

Styles defines UI styles

func DefaultStyles

func DefaultStyles() Styles

DefaultStyles returns default styles

Jump to

Keyboard shortcuts

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