tui

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartTui

func StartTui(path string)

Types

type FileViewKeyMap

type FileViewKeyMap struct {
	Select key.Binding
}

func DefaultFileViewKeyMap

func DefaultFileViewKeyMap() FileViewKeyMap

func (FileViewKeyMap) FullHelp

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

func (FileViewKeyMap) ShortHelp

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

type MainKeyMap

type MainKeyMap struct {
	Quit key.Binding
	Next key.Binding
	Prev key.Binding
}

func DefaultKeyMap

func DefaultKeyMap() MainKeyMap

func (MainKeyMap) FullHelp

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

FullHelp returns keybindings for the expanded help view. It's part of the key.Map interface.

func (MainKeyMap) ShortHelp

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

ShortHelp returns keybindings to be shown in the mini help view. It's part of the key.Map interface.

Jump to

Keyboard shortcuts

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