mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 06:20:05 +08:00
23 lines
646 B
Python
Vendored
23 lines
646 B
Python
Vendored
# ============================================================================
|
|
# FILE: clipboard.py
|
|
# AUTHOR: Shougo Matsushita <Shougo.Matsu at gmail.com>
|
|
# License: MIT license
|
|
# ============================================================================
|
|
|
|
from enum import auto, Enum
|
|
import typing
|
|
|
|
|
|
class ClipboardAction(Enum):
|
|
MOVE = auto()
|
|
COPY = auto()
|
|
|
|
|
|
class Clipboard():
|
|
def __init__(self,
|
|
action: ClipboardAction = ClipboardAction.COPY,
|
|
candidates:
|
|
typing.List[typing.Dict[str, typing.Any]] = []) -> None:
|
|
self.action = action
|
|
self.candidates = candidates
|