alfred

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDest = "~/Library/Application Support/Alfred/Alfred.alfredpreferences/snippets"

Variables

This section is empty.

Functions

This section is empty.

Types

type Alfred

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

func New

func New(ignore []string) *Alfred

New return *Alfred

func (*Alfred) Decode added in v0.4.0

func (a *Alfred) Decode(in io.Reader, group string) (snippet.Snippets, error)

func (*Alfred) Export

func (a *Alfred) Export(snippets snippet.Snippets, dest string) error

func (*Alfred) Load

func (a *Alfred) Load(src string) (snippet.Snippets, error)

type AlfredSnippet

type AlfredSnippet struct {
	UID     string `json:"uid"`
	Name    string `json:"name"`
	Snippet string `json:"snippet"`
	Keyword string `json:"keyword"`
}

type Snippet

type Snippet struct {
	AlfredSnippet AlfredSnippet `json:"alfredsnippet"`
}

func NewSnippet

func NewSnippet(u, n, s, k string) Snippet

Jump to

Keyboard shortcuts

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