shortcuts

package
v0.0.0-...-7b27a3b Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	Shortcuts []ShortCut
	// contains filtered or unexported fields
}

func NewManager

func NewManager() *Manager

func (*Manager) GetShortCut

func (s *Manager) GetShortCut(kind, name string) string

func (*Manager) Load

func (s *Manager) Load()

func (*Manager) Save

func (s *Manager) Save() error

func (*Manager) SetShortCut

func (s *Manager) SetShortCut(sc ShortCut) (*ShortCut, error)

type ShortCut

type ShortCut struct {
	Kind     string `json:"kind"`
	ShortCut string `json:"shortcut"`
	Name     string `json:"name"`
	Item     any    `json:"item"`
}

Jump to

Keyboard shortcuts

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