Centralize definition of file transfer OSC code

This commit is contained in:
Kovid Goyal
2021-09-08 13:43:59 +05:30
parent 745e97e0ab
commit 8aacf30f19
8 changed files with 35 additions and 10 deletions

View File

@@ -5,7 +5,7 @@
from types import TracebackType
from typing import (
Any, Callable, ContextManager, Dict, Optional, Sequence, Type, Union
Any, Callable, ContextManager, Dict, Optional, Sequence, Type, Union, TYPE_CHECKING
)
from kitty.types import ParsedShortcut
@@ -17,6 +17,10 @@ from kitty.typing import (
from .operations import pending_update
if TYPE_CHECKING:
from kitty.file_transmission import FileTransmissionCommand
class Handler:
image_manager_class: Optional[Type[ImageManagerType]] = None
@@ -118,6 +122,9 @@ class Handler:
def on_clipboard_response(self, text: str, from_primary: bool = False) -> None:
pass
def on_file_transfer_response(self, ftc: 'FileTransmissionCommand') -> None:
pass
def on_capability_response(self, name: str, val: str) -> None:
pass