euporie.core.clipboard

Module concerning clipboard access and manipulation.

Functions

add_setting(name, default, help_, description)

Register a new config item.

determine_clipboard()

Determine the OS/platform and set the copy() and paste() functions accordingly.

Classes

Clipboard()

Abstract baseclass for clipboards.

ClipboardData([text, type])

Text on the clipboard.

ConfiguredClipboard(app)

Use a clipboard determined by euporie's configuration.

InMemoryClipboard([data, max_size])

Default clipboard implementation.

Osc52Clipboard(app)

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.ConfiguredClipboard(app: BaseApp)

Bases: Clipboard

Use a clipboard determined by euporie’s configuration.

get_clipboard(setting: Setting) None

Determine which clipboard to use.

get_data() ClipboardData

Return clipboard data.

rotate() None

For Emacs mode, rotate the kill ring.

set_data(data: ClipboardData) None

Set data to the clipboard.

set_text(text: str) None

Shortcut for setting plain text on clipboard.

class euporie.core.clipboard.Osc52Clipboard(app: BaseApp)

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.