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.

Osc52Clipboard()

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

PtkPyperclipClipboard

alias of PyperclipClipboard

PyperclipClipboard()

Pyperclip clipboard which suppresses pyperclip exceptions.

SelectionType(*values)

Type of selection.

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.

class euporie.core.clipboard.PyperclipClipboard

Bases: PyperclipClipboard

Pyperclip clipboard which suppresses pyperclip exceptions.

get_data() ClipboardData

Return clipboard data.

rotate() None

For Emacs mode, rotate the kill ring.

set_data(data: ClipboardData) None

Set the clipboard data, ignoring any clipboard errors.

set_text(text: str) None

Shortcut for setting plain text on clipboard.