From 6690c4f91636b5c18b8ced7fa7b48aceff6109f1 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Wed, 23 Jan 2019 11:37:54 +0100 Subject: [PATCH] Add default keyboard shortcuts to jump words on macOS --- docs/index.rst | 2 ++ kitty/config_data.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/docs/index.rst b/docs/index.rst index 278aebd86..0e5496b1a 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -194,6 +194,8 @@ Increase background opacity :sc:`increase_background_opacity` Decrease background opacity :sc:`decrease_background_opacity` Full background opacity :sc:`full_background_opacity` Reset background opacity :sc:`reset_background_opacity` +Jump left one word :kbd:`⌥+←` (only on macOS) +Jump right one word :kbd:`⌥+→` (only on macOS) ================================== ======================= diff --git a/kitty/config_data.py b/kitty/config_data.py index 2e7ecfac6..36a41e3c9 100644 --- a/kitty/config_data.py +++ b/kitty/config_data.py @@ -1091,6 +1091,9 @@ the line (same as pressing the Home key):: map ctrl+alt+a send_text normal Word\\x1b[H map ctrl+alt+a send_text application Word\\x1bOH ''')) +if is_macos: + k('send_text', 'alt+left', 'send_text all \x1b\x62', _('Jump left one word'), add_to_docs=False) + k('send_text', 'alt+right', 'send_text all \x1b\x66', _('Jump right one word'), add_to_docs=False) # }}} # }}}