Add default keyboard shortcuts to jump words on macOS

This commit is contained in:
Luflosi 2019-01-23 11:37:54 +01:00
parent 6d3ad7d903
commit 6690c4f916
No known key found for this signature in database
GPG Key ID: 14140F703B7D8362
2 changed files with 5 additions and 0 deletions

View File

@ -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)
================================== =======================

View File

@ -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)
# }}}
# }}}