From 65b2ca8f57ae0fdef84b086aea2c9d2e3ad5baab Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 7 Jul 2021 18:06:39 +0530 Subject: [PATCH] Fix a typo that broke addition of default mouse mappings in gen-config Also update options/types.py with new action name --- kitty/conf/types.py | 2 +- kitty/options/types.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/conf/types.py b/kitty/conf/types.py index 0645f6996..db7331ce5 100644 --- a/kitty/conf/types.py +++ b/kitty/conf/types.py @@ -568,7 +568,7 @@ class Definition: for x in self.iter_all_non_groups(): if isinstance(x, ShortcutMapping) and which in ('map', '*'): yield x - elif isinstance(x, MouseMapping) and which == ('mouse_map', '*'): + elif isinstance(x, MouseMapping) and which in ('mouse_map', '*'): yield x def parser_func(self, name: str) -> Callable: diff --git a/kitty/options/types.py b/kitty/options/types.py index 3a25668bb..9555c1f69 100644 --- a/kitty/options/types.py +++ b/kitty/options/types.py @@ -773,7 +773,7 @@ defaults.map = [ # reset_font_size KeyDefinition(False, KeyAction('change_font_size', (True, None, 0.0)), 1024, False, 57347, ()), # open_url - KeyDefinition(False, KeyAction('kitten', ('hints',)), 1024, False, 101, ()), + KeyDefinition(False, KeyAction('open_url_with_hints'), 1024, False, 101, ()), # insert_selected_path KeyDefinition(True, KeyAction('kitten', ('hints', '--type path --program -')), 1024, False, 112, (SingleKey(mods=0, is_native=False, key=102),)), # open_selected_path