A new watcher option for kitty.conf that replaces the old --watcher cli flag

Applies to all windows, not just initial ones.
This commit is contained in:
Kovid Goyal
2021-09-29 14:01:30 +05:30
parent 7a16ef2cc4
commit 166ea9deb9
11 changed files with 86 additions and 34 deletions
+3
View File
@@ -429,6 +429,7 @@ option_names = ( # {{{
'url_prefixes',
'url_style',
'visual_bell_duration',
'watcher',
'wayland_titlebar_color',
'wheel_scroll_multiplier',
'window_alert_on_bell',
@@ -577,6 +578,7 @@ class Options:
font_features: typing.Dict[str, typing.Tuple[kitty.fonts.FontFeature, ...]] = {}
kitten_alias: typing.Dict[str, typing.List[str]] = {}
symbol_map: typing.Dict[typing.Tuple[int, int], str] = {}
watcher: typing.Dict[str, str] = {}
map: typing.List[kitty.options.utils.KeyDefinition] = []
keymap: KeyMap = {}
sequence_map: SequenceMap = {}
@@ -691,6 +693,7 @@ defaults.env = {}
defaults.font_features = {}
defaults.kitten_alias = {}
defaults.symbol_map = {}
defaults.watcher = {}
defaults.map = [
# copy_to_clipboard
KeyDefinition(False, KeyAction('copy_to_clipboard'), 1024, False, 99, ()),