keys

package
v0.0.61 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Global = KeyMap{
	Quit(),
}

Functions

func Bottom

func Bottom() tea.Msg

func ChangeRoute

func ChangeRoute(name string) tea.Cmd

func HalfPageDown

func HalfPageDown() tea.Msg

func HalfPageUp

func HalfPageUp() tea.Msg

func LineDown

func LineDown() tea.Msg

func LineUp

func LineUp() tea.Msg

func MapKeys

func MapKeys(keys ...key.Binding) []map[string]string

func NextPage

func NextPage() tea.Msg

func PageDown

func PageDown() tea.Msg

func PageUp

func PageUp() tea.Msg

func PrevPage

func PrevPage() tea.Msg

func ReturnSelections

func ReturnSelections() tea.Msg

func ReturnToList

func ReturnToList() tea.Msg

func ShowHelp

func ShowHelp() tea.Msg

func ToggleAllItems

func ToggleAllItems() tea.Msg

func ToggleItem

func ToggleItem() tea.Msg

func Top

func Top() tea.Msg

Types

type Binding

type Binding struct {
	key.Binding

	TeaCmd tea.Cmd
	// contains filtered or unexported fields
}

func Down

func Down() *Binding

func Edit

func Edit() *Binding

func End

func End() *Binding

func Enter

func Enter() *Binding

func Esc

func Esc() *Binding

func Filter

func Filter() *Binding

func HalfPgDown

func HalfPgDown() *Binding

func HalfPgUp

func HalfPgUp() *Binding

func Help

func Help() *Binding

func Home

func Home() *Binding

func New

func New(keys ...string) *Binding

func NewBind

func NewBind(k key.Binding) *Binding

func Next

func Next() *Binding

func No

func No() *Binding

func PgDown

func PgDown() *Binding

func PgUp

func PgUp() *Binding

func Prev

func Prev() *Binding

func Quit

func Quit() *Binding

func Save

func Save() *Binding

func Toggle

func Toggle() *Binding

func Up

func Up() *Binding

func Yes

func Yes() *Binding

func (*Binding) AddKeys

func (k *Binding) AddKeys(keys ...string) *Binding

func (*Binding) Cmd

func (k *Binding) Cmd(cmd tea.Cmd) *Binding

func (*Binding) WithHelp

func (k *Binding) WithHelp(h string) *Binding

func (*Binding) WithKeys

func (k *Binding) WithKeys(keys ...string) *Binding

type BottomMsg

type BottomMsg struct{}

type ChangeRouteMsg

type ChangeRouteMsg struct {
	Name string
}

type HalfPageDownMsg

type HalfPageDownMsg struct{}

type HalfPageUpMsg

type HalfPageUpMsg struct{}

type KeyMap

type KeyMap []*Binding

func TextArea

func TextArea() KeyMap

func TextInput

func TextInput() KeyMap

func (KeyMap) AddBind

func (km KeyMap) AddBind(b *Binding)

func (KeyMap) Get

func (km KeyMap) Get(name string) *Binding

func (KeyMap) Map

func (km KeyMap) Map() []map[string]string

func (KeyMap) New

func (km KeyMap) New(keys ...string) *Binding

type LineDownMsg

type LineDownMsg struct{}

type LineUpMsg

type LineUpMsg struct{}

Nav msg

type NextMsg

type NextMsg struct{}

type PageDownMsg

type PageDownMsg struct{}

type PageUpMsg

type PageUpMsg struct{}

type PrevMsg

type PrevMsg struct{}

type ReturnSelectionsMsg

type ReturnSelectionsMsg struct{}

List Msg

type ReturnToListMsg

type ReturnToListMsg struct{}

Route keys

type ShowHelpMsg

type ShowHelpMsg struct{}

Help msg

type ToggleAllItemsMsg

type ToggleAllItemsMsg struct{}

type ToggleItemMsg

type ToggleItemMsg struct{}

type TopMsg

type TopMsg struct{}

Jump to

Keyboard shortcuts

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