macOS: Add default mapping and global menubar action to erase last command

This is "Cmd+L" from Terminal.app
This commit is contained in:
Kovid Goyal
2025-08-07 09:15:12 +05:30
parent b0439d4183
commit c86ec79e32
9 changed files with 30 additions and 5 deletions

View File

@@ -207,6 +207,9 @@ def set_cocoa_global_shortcuts(opts: Options) -> dict[str, SingleKey]:
val = get_macos_shortcut_for(func_map, 'clear_terminal to_cursor_scroll active', lookup_name='clear_screen')
if val is not None:
global_shortcuts['clear_screen'] = val
val = get_macos_shortcut_for(func_map, 'clear_terminal last_command active', lookup_name='clear_last_command')
if val is not None:
global_shortcuts['clear_last_command'] = val
val = get_macos_shortcut_for(func_map, 'load_config_file', lookup_name='reload_config')
if val is not None:
global_shortcuts['reload_config'] = val