keys

package module
v0.0.0-...-33acb6c Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2016 License: Apache-2.0 Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shortcuts

type Shortcuts struct {
	Keys []key `yaml:"keys"`
	// contains filtered or unexported fields
}

func ParseConfig

func ParseConfig(path string) *Shortcuts

func (*Shortcuts) AutoAssign

func (s *Shortcuts) AutoAssign(mapTo, label string)

func (*Shortcuts) BestEffortAssign

func (s *Shortcuts) BestEffortAssign(ch rune, mapTo, label string)

func (*Shortcuts) HasLabel

func (s *Shortcuts) HasLabel(label string) bool

func (*Shortcuts) Len

func (s *Shortcuts) Len() int

func (*Shortcuts) Less

func (s *Shortcuts) Less(i int, j int) bool

func (*Shortcuts) MapsTo

func (s *Shortcuts) MapsTo(c rune, label string) (string, bool)

func (*Shortcuts) Persist

func (s *Shortcuts) Persist(path string)

Persist would write out the mappings in YAML format.

func (*Shortcuts) Print

func (s *Shortcuts) Print(label string, compact bool)

func (*Shortcuts) Swap

func (s *Shortcuts) Swap(i int, j int)

func (*Shortcuts) Validate

func (s *Shortcuts) Validate()

Jump to

Keyboard shortcuts

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