diff --git a/modules/debugger_console_panel.py b/modules/debugger_console_panel.py index f2bf020..baa344c 100644 --- a/modules/debugger_console_panel.py +++ b/modules/debugger_console_panel.py @@ -236,6 +236,10 @@ def on_query_context(self, key: str, operator: int, operand: Any, match_all: boo self.set_input_mode() return None + def on_post_text_command(self, command_name: str, args: Any): + if command_name == 'copy': + sublime.set_clipboard(sublime.get_clipboard().replace('\u200c', '').replace('\u200b', '').replace('\u200d', '')) + def on_text_command(self, command_name: str, args: Any): if command_name == 'insert' and args['characters'] == '\n' and self.enter(): return ('noop') diff --git a/modules/debugger_output_panel.py b/modules/debugger_output_panel.py index b37bd29..388b664 100644 --- a/modules/debugger_output_panel.py +++ b/modules/debugger_output_panel.py @@ -262,6 +262,7 @@ def on_selection_modified(self): ... def on_activated(self): ... def on_deactivated(self): ... def on_text_command(self, command_name: str, args: Any): ... + def on_post_text_command(self, command_name: str, args: Any): ... def on_query_context(self, key: str, operator: int, operand: Any, match_all: bool) -> bool|None: ... def on_query_completions(self, prefix: str, locations: list[int]) -> Any: ...