keys

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Keys = keyMap{
	Up:    key.NewBinding(key.WithKeys("up", "k"), key.WithHelp("↑/k", "move up")),
	Down:  key.NewBinding(key.WithKeys("down", "j"), key.WithHelp("↓/j", "move down")),
	Left:  key.NewBinding(key.WithKeys("left"), key.WithHelp("←", "Switch to left tab")),
	Right: key.NewBinding(key.WithKeys("right"), key.WithHelp("→", "Switch to right tab")),
	Quit:  key.NewBinding(key.WithKeys("ctrl+c"), key.WithHelp("ctrl+c", "Quit")),
}

Functions

func GetKeyMap

func GetKeyMap(activeContextBindings []key.Binding) help.KeyMap

Types

type BranchKeyMap

type BranchKeyMap struct {
	MergeAutomatically      key.Binding
	CloseTargetBranchesList key.Binding
	SelectTargetBranch      key.Binding
	MergeFavourite          []key.Binding
}

func BranchHelp

func BranchHelp(branchTargets []string) BranchKeyMap

type MergeRequestKeyMap

type MergeRequestKeyMap struct{}

func MergeRequestHelp

func MergeRequestHelp() MergeRequestKeyMap

Jump to

Keyboard shortcuts

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