keymap

package
v0.0.0-...-4a904d8 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyMap

type KeyMap struct {
	Quit     key.Binding
	Down     key.Binding
	Up       key.Binding
	Left     key.Binding
	Right    key.Binding
	Space    key.Binding
	Enter    key.Binding
	Esc      key.Binding
	SwapView key.Binding
	ShowLogs key.Binding

	RefreshList key.Binding
	Search      key.Binding
	Apply       key.Binding
	Settings    key.Binding

	PageDown     key.Binding
	PageUp       key.Binding
	HalfPageUp   key.Binding
	HalfPageDown key.Binding
}

KeyMap defines the keybindings for the viewport. Note that you don't necessary need to use keybindings at all; the viewport can be controlled programmatically with methods like Model.LineDown(1). See the GoDocs for details.

func New

func New() KeyMap

New returns a set of default keybindings.

Jump to

Keyboard shortcuts

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