Documentation
¶
Overview ¶
Package clip puts text on the clipboard of the person at the terminal and asks the terminal for what its clipboard holds
Index ¶
- func Copy(text string) tea.Cmd
- func PowershellWriteScript(b64 string) string
- func Query() tea.Cmd
- func Send(text string) tea.Cmd
- func StartCommand(ctx context.Context, cmd string, args []string, stdin *string) bool
- func WriteText(ctx context.Context, text string) bool
- func WriteTextWith(ctx context.Context, text, platform string, start Start, ...) bool
- type Lookup
- type Start
- type WriteCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Copy ¶
Copies text for the person at the terminal: the clipboard tool of this machine where it is theirs, the tmux buffer inside tmux, and the terminal's clipboard sequence
func PowershellWriteScript ¶
PowerShell command that sets the clipboard from base64 text
func Send ¶
Sends text to the clipboard of the terminal alone, through the multiplexer when the process runs in one
func StartCommand ¶
Runs a clipboard writer, piping the text to its stdin when given, true on a zero exit