mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 23:14:55 +02:00
Centralize definition of file transfer OSC code
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user