Documentation
¶
Overview ¶
Package ui provides the main UI for the kat application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = NewConfig()
Functions ¶
func LogKeyPress ¶
func LogKeyPress(key, context string)
LogKeyPress logs key presses for debugging (optional, can be enabled via config).
Types ¶
type Config ¶
type Config struct {
KeyBinds *KeyBinds `yaml:"keybinds"`
Themes map[string]ThemeConfig `validate:"dive" yaml:"themes,omitempty"`
UI *UIConfig `yaml:"ui,omitempty"`
}
Config contains TUI-specific configuration.
func (*Config) EnsureDefaults ¶
func (c *Config) EnsureDefaults()
type GotResultMsg ¶
type KeyBinds ¶
type KeyBinds struct {
Common *common.KeyBinds `yaml:"common"`
List *list.KeyBinds `yaml:"list"`
Pager *pager.KeyBinds `yaml:"pager"`
}
func NewKeyBinds ¶
func NewKeyBinds() *KeyBinds
func (*KeyBinds) EnsureDefaults ¶
func (kb *KeyBinds) EnsureDefaults()
type OverlayState ¶
type OverlayState int
type ShowResultMsg ¶
type ShowResultMsg struct{}
type ThemeConfig ¶
type ThemeConfig struct {
Styles chroma.StyleEntries `yaml:"styles,omitempty"`
}
type UIConfig ¶
type UIConfig struct {
MinimumDelay *time.Duration `yaml:"minimumDelay"`
Compact *bool `yaml:"compact"`
WordWrap *bool `yaml:"wordWrap"`
ChromaRendering *bool `yaml:"chromaRendering"`
LineNumbers *bool `yaml:"lineNumbers"`
Theme string `yaml:"theme"`
}
func (*UIConfig) EnsureDefaults ¶
func (c *UIConfig) EnsureDefaults()
Directories
¶
| Path | Synopsis |
|---|---|
|
Package overlay provides terminal UI overlay functionality for placing foreground content on top of background content, similar to modal dialogs or popup windows in terminal applications.
|
Package overlay provides terminal UI overlay functionality for placing foreground content on top of background content, similar to modal dialogs or popup windows in terminal applications. |
Click to show internal directories.
Click to hide internal directories.