app

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetThemeNames

func GetThemeNames() []string

GetThemeNames returns available theme names

Types

type KeyMap

type KeyMap struct {
	Up          key.Binding
	Down        key.Binding
	Left        key.Binding
	Right       key.Binding
	PageUp      key.Binding
	PageDown    key.Binding
	Home        key.Binding
	End         key.Binding
	FirstCol    key.Binding
	LastCol     key.Binding
	NextSheet   key.Binding
	PrevSheet   key.Binding
	Search      key.Binding
	NextResult  key.Binding
	PrevResult  key.Binding
	ClearSearch key.Binding
	Detail      key.Binding
	Jump        key.Binding
	ToggleForm  key.Binding
	Copy        key.Binding
	CopyRow     key.Binding
	Export      key.Binding
	Theme       key.Binding
	Help        key.Binding
	Quit        key.Binding
	Visualize   key.Binding
	SelectRange key.Binding
}

KeyMap defines keyboard shortcuts

func DefaultKeyMap

func DefaultKeyMap() KeyMap

DefaultKeyMap returns the default keybindings

func (KeyMap) FullHelp

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

FullHelp returns key bindings for the expanded help view

func (KeyMap) ShortHelp

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

ShortHelp returns key bindings to be shown in the mini help view

type Model

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

Model represents the application state

func NewModel

func NewModel(filename string, sheets []models.Sheet, themeName string) Model

NewModel creates a new application model

func (Model) Init

func (m Model) Init() tea.Cmd

Init initializes the model

func (Model) Update

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

Update handles messages and updates the model

func (Model) View

func (m Model) View() string

View renders the current state

Jump to

Keyboard shortcuts

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