clipboard

package
v0.12.6 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const ClipboardName = "clipboard"

Variables

View Source
var ClipboardSocketAddrUpdate = filepath.Join(util.TmpDir(), "walker-clipboard-update.sock")

Functions

func Update added in v0.10.8

func Update(content []byte)

Types

type Clipboard

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

func (Clipboard) Cleanup

func (c Clipboard) Cleanup()

func (*Clipboard) Delete added in v0.10.8

func (c *Clipboard) Delete(entry util.Entry)

func (Clipboard) Entries

func (c Clipboard) Entries(term string) []util.Entry

func (*Clipboard) General

func (c *Clipboard) General() *config.GeneralModule

func (*Clipboard) Refresh

func (c *Clipboard) Refresh()

func (*Clipboard) Setup

func (c *Clipboard) Setup() bool

func (*Clipboard) SetupData

func (c *Clipboard) SetupData()

type ClipboardItem

type ClipboardItem struct {
	Content   string    `json:"content,omitempty"`
	Time      time.Time `json:"time,omitempty"`
	Hash      string    `json:"hash,omitempty"`
	IsImg     bool      `json:"is_img,omitempty"`
	HashIdent string    `json:"hash_ident,omitempty"`
}

Jump to

Keyboard shortcuts

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