euporie.core.clipboard

Module concerning clipboard access and manipulation.

Functions

get_app()

Get the current active (running) Application.

Classes

Clipboard()

Abstract baseclass for clipboards.

ClipboardData([text, type])

Text on the clipboard.

InMemoryClipboard([data, max_size])

Default clipboard implementation.

KeyProcessor(*args, **kwargs)

A subclass of prompt_toolkit's keyprocessor.

Osc52Clipboard()

Clipboard that syncs with the system clipboard using OSC52 escape codes.

PyperclipClipboard()

Clipboard that synchronizes with the Windows/Mac/Linux system clipboard, using the pyperclip module.

SelectionType(value[, names, module, ...])

Type of selection.

Vt100_Output(stdout, get_size[, term, ...])

A Vt100 output which enables SGR pixel mouse positioning.

class euporie.core.clipboard.Osc52Clipboard

Bases: Clipboard

Clipboard that syncs with the system clipboard using OSC52 escape codes.

get_data() ClipboardData

Retrieve clipboard data.

rotate() None

For Emacs mode, rotate the kill ring.

set_data(data: ClipboardData) None

Set clipboard data.

set_text(text: str) None

Shortcut for setting plain text on clipboard.

sync(text: str) None

Update the last known clipboard data.