mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 15:04:50 +02:00
Show the user an error message when pressing a key results in an exception
This commit is contained in:
@@ -260,6 +260,12 @@ class KeyAction(NamedTuple):
|
||||
return f'KeyAction({self.func!r}, {self.args!r})'
|
||||
return f'KeyAction({self.func!r})'
|
||||
|
||||
def pretty(self) -> str:
|
||||
ans = self.func
|
||||
for x in self.args:
|
||||
ans += f' {x}'
|
||||
return ans
|
||||
|
||||
|
||||
def parse_kittens_func_args(action: str, args_funcs: Dict[str, KeyFunc[Tuple[str, Any]]]) -> KeyAction:
|
||||
parts = action.strip().split(' ', 1)
|
||||
|
||||
Reference in New Issue
Block a user