mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 12:50:03 +08:00
23 lines
646 B
Python
23 lines
646 B
Python
|
# ============================================================================
|
||
|
# 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
|