list

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 11 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
	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
}

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, config *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

Jump to

Keyboard shortcuts

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