list

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetKey added in v0.2.0

func SetKey(s string) key.Binding

Types

type KeyMap

type KeyMap struct {
	Quit key.Binding

	Up            key.Binding
	Down          key.Binding
	HalfUp        key.Binding
	HalfDown      key.Binding
	FullUp        key.Binding
	FullDown      key.Binding
	UpFocus       key.Binding
	DownFocus     key.Binding
	GoToFirstLine key.Binding
	GoToLastLine  key.Binding
	GoToTop       key.Binding
	GoToMiddle    key.Binding
	GoToBottom    key.Binding

	CenterCursor key.Binding

	Search      key.Binding
	ClearSearch key.Binding
	Normal      key.Binding

	TextInputKeyMap
}

func CreateKeyMap added in v0.2.0

func CreateKeyMap(keys config.Keys) KeyMap

type Model

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

func New

func New(t *table.Model, c *config.Config) Model

func (*Model) Init

func (m *Model) Init() tea.Cmd

func (*Model) Reset

func (m *Model) Reset()

Resets list to unfiltered state

func (*Model) Resize

func (m *Model) Resize(width, height int)

func (*Model) SyncContent

func (m *Model) SyncContent(table *table.Model)

Sync content by updating cursor and visible rows

func (*Model) UnstyledString

func (m *Model) UnstyledString() string

func (Model) Update

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

func (*Model) View

func (m *Model) View() string

type TextInputKeyMap added in v0.4.1

type TextInputKeyMap struct {
	CharacterForward        key.Binding
	CharacterBackward       key.Binding
	WordForward             key.Binding
	WordBackward            key.Binding
	DeleteWordBackward      key.Binding
	DeleteWordForward       key.Binding
	DeleteAfterCursor       key.Binding
	DeleteBeforeCursor      key.Binding
	DeleteCharacterBackward key.Binding
	DeleteCharacterForward  key.Binding
	LineStart               key.Binding
	LineEnd                 key.Binding
	Paste                   key.Binding
}

Jump to

Keyboard shortcuts

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