macOS: Bind :kbd:option+left and :kbd:option+right to :kbd:alt+b and :kbd:alt+f. This mimics the default bindings in Terminal.app
Fixes #5793
This commit is contained in:
parent
40093a4702
commit
65c64d8745
@ -69,6 +69,8 @@ Detailed list of changes
|
|||||||
|
|
||||||
- Remote control: When matching windows allow using negative id numbers to match recently created windows (:iss:`5753`)
|
- Remote control: When matching windows allow using negative id numbers to match recently created windows (:iss:`5753`)
|
||||||
|
|
||||||
|
- macOS: Bind :kbd:`option+left` and :kbd:`option+right` to :kbd:`alt+b` and :kbd:`alt+f`. This mimics the default bindings in Terminal.app (:iss:`5793`)
|
||||||
|
|
||||||
0.26.5 [2022-11-07]
|
0.26.5 [2022-11-07]
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|||||||
@ -4002,5 +4002,13 @@ map('Open kitty Website',
|
|||||||
f'open_kitty_website shift+cmd+/ open_url {website_url()}',
|
f'open_kitty_website shift+cmd+/ open_url {website_url()}',
|
||||||
only='macos',
|
only='macos',
|
||||||
)
|
)
|
||||||
|
map('Move right one word',
|
||||||
|
'move_right_one_word alt+right send_text normal,application \\x1bf',
|
||||||
|
only='macos'
|
||||||
|
)
|
||||||
|
map('Move left one word',
|
||||||
|
'move_left_one_word alt+left send_text normal,application \\x1bb',
|
||||||
|
only='macos'
|
||||||
|
)
|
||||||
egr() # }}}
|
egr() # }}}
|
||||||
egr() # }}}
|
egr() # }}}
|
||||||
|
|||||||
2
kitty/options/types.py
generated
2
kitty/options/types.py
generated
@ -937,6 +937,8 @@ if is_macos:
|
|||||||
defaults.map.append(KeyDefinition(trigger=SingleKey(mods=12, key=44), definition='load_config_file')) # noqa
|
defaults.map.append(KeyDefinition(trigger=SingleKey(mods=12, key=44), definition='load_config_file')) # noqa
|
||||||
defaults.map.append(KeyDefinition(trigger=SingleKey(mods=10, key=44), definition='debug_config')) # noqa
|
defaults.map.append(KeyDefinition(trigger=SingleKey(mods=10, key=44), definition='debug_config')) # noqa
|
||||||
defaults.map.append(KeyDefinition(trigger=SingleKey(mods=9, key=47), definition='open_url https://sw.kovidgoyal.net/kitty/')) # noqa
|
defaults.map.append(KeyDefinition(trigger=SingleKey(mods=9, key=47), definition='open_url https://sw.kovidgoyal.net/kitty/')) # noqa
|
||||||
|
defaults.map.append(KeyDefinition(trigger=SingleKey(mods=2, key=57351), definition='send_text normal,application \\x1bf')) # noqa
|
||||||
|
defaults.map.append(KeyDefinition(trigger=SingleKey(mods=2, key=57350), definition='send_text normal,application \\x1bb')) # noqa
|
||||||
defaults.mouse_map = [
|
defaults.mouse_map = [
|
||||||
# click_url_or_select
|
# click_url_or_select
|
||||||
MouseMapping(repeat_count=-2, definition='mouse_handle_click selection link prompt'), # noqa
|
MouseMapping(repeat_count=-2, definition='mouse_handle_click selection link prompt'), # noqa
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user