launcher

package
v0.0.0-...-1643010 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LaunchToken

func LaunchToken(
	cfg *config.UserConfig,
	manual bool,
	kbd input.Keyboard,
	text string,
	totalCommands int,
	currentIndex int,
) (error, bool)

*

  • Will launch a command related to the token, and if it is a software that will
  • change the currently loaded software will also return a boolean set to true

func LoadCsvMappings

func LoadCsvMappings() (map[string]string, map[string]string, error)

func StartCsvMappingsWatcher

func StartCsvMappingsWatcher(
	getLoadTime func() time.Time,
	setMappings func(map[string]string, map[string]string),
) (func() error, error)

Types

type CsvMappingEntry

type CsvMappingEntry struct {
	MatchUID  string `csv:"match_uid"`
	MatchText string `csv:"match_text"`
	Text      string `csv:"text"`
}

Jump to

Keyboard shortcuts

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