shortcut

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoModifier = iota
	AltModifier
	ControlModifier
	ShiftModifier

	AlignLeft = iota
	AlignRight
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyBinding

type KeyBinding struct {
	Modifier int
	Key      string
	Label    string
}

type Model

type Model struct {
	Shortcuts Shortcuts
	// contains filtered or unexported fields
}

func New

func New(s Shortcuts) Model

func ToModel

func ToModel(m tea.Model, c tea.Cmd) (Model, tea.Cmd)

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type Modifier

type Modifier struct {
	Modifier int
	Label    string
	Align    int
}

type Shortcuts

type Shortcuts struct {
	State       *commit.State
	KeyBindings []KeyBinding
	Modifiers   []Modifier
}

type Styles

type Styles struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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