interact

package
v0.0.0-...-2e0dfad Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mode

type Mode int
const (
	ModeSearch Mode = iota
	ModeNav
	ModeViewport
)

type Model

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

func Initial

func Initial() Model

func (*Model) Update

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

func (*Model) View

func (m *Model) View(sm *state.Model) string
type NavKeyMap struct {
	Quit         key.Binding
	Search       key.Binding
	Clear        key.Binding
	Nav          key.Binding
	Copy         key.Binding
	Edit         key.Binding
	New          key.Binding
	Del          key.Binding
	ChangeMaster key.Binding
}
func (k NavKeyMap) FullHelp() [][]key.Binding
func (k NavKeyMap) ShortHelp() []key.Binding

type SearchKeyMap

type SearchKeyMap struct {
	Quit    key.Binding
	Confirm key.Binding
}

func (SearchKeyMap) FullHelp

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

func (SearchKeyMap) ShortHelp

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

type ViewportKeyMap

type ViewportKeyMap struct {
	Quit key.Binding
	Back key.Binding
	Save key.Binding
	Next key.Binding
	Prev key.Binding
}

func (ViewportKeyMap) FullHelp

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

func (ViewportKeyMap) ShortHelp

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

Jump to

Keyboard shortcuts

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