app

package
v0.0.0-...-692cb10 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KittyFilter

func KittyFilter(_ tea.Model, msg tea.Msg) tea.Msg

KittyFilter intercepts Kitty keyboard protocol CSI u sequences that BubbleTea doesn't recognise (they arrive as unexported unknownCSISequenceMsg) and converts them to standard BubbleTea key messages or custom messages.

Terminals that do not support the Kitty protocol never emit these sequences, so the filter is a no-op in that case.

Types

type FocusTarget

type FocusTarget int

FocusTarget tracks which panel has focus.

const (
	FocusLeft FocusTarget = iota
	FocusRight
)

type KeyMap

type KeyMap struct {
	Quit         key.Binding
	TogglePanel  key.Binding
	SwapPanels   key.Binding
	SameDir      key.Binding
	Copy         key.Binding
	Move         key.Binding
	Mkdir        key.Binding
	Delete       key.Binding
	Rename       key.Binding
	View         key.Binding
	Edit         key.Binding
	GoTo         key.Binding
	FuzzyFind    key.Binding
	Bookmarks    key.Binding
	Help         key.Binding
	ThemePicker  key.Binding
	CmdExec      key.Binding
	Terminal     key.Binding
	ToggleHidden key.Binding
}

KeyMap defines all global keybindings.

func KeyMapFromConfig

func KeyMapFromConfig(keys config.KeyBindings) KeyMap

KeyMapFromConfig builds the global keymap from config.

type Model

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

Model is the root application model.

func New

func New(version string) Model

New creates a new application model.

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 ShiftPressMsg

type ShiftPressMsg struct{}

ShiftPressMsg signals that Shift is currently held down (from OS-level polling).

type ShiftReleaseMsg

type ShiftReleaseMsg struct{}

ShiftReleaseMsg signals that Shift has been released.

Jump to

Keyboard shortcuts

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