Cocoa grabs control+function key presses so use dedicated cmd based shortcuts for those on macOS
This commit is contained in:
parent
b9d52dfaf7
commit
c7b91e5f19
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@ -22,7 +22,7 @@ If applicable, add screenshots to help explain your problem.
|
|||||||
|
|
||||||
**Environment details**
|
**Environment details**
|
||||||
```
|
```
|
||||||
Press Ctrl+Shift+F6 in kitty, to copy debug output about kitty and its
|
Press Ctrl+Shift+F6 (cmd+option+, on macOS) in kitty, to copy debug output about kitty and its
|
||||||
configuration to the clipboard and paste it here.
|
configuration to the clipboard and paste it here.
|
||||||
|
|
||||||
On older versions of kitty, run kitty --debug-config instead
|
On older versions of kitty, run kitty --debug-config instead
|
||||||
|
|||||||
@ -116,8 +116,8 @@ Toggle maximized :sc:`toggle_maximized`
|
|||||||
Input unicode character :sc:`input_unicode_character` (also :kbd:`^+⌘+space` on macOS)
|
Input unicode character :sc:`input_unicode_character` (also :kbd:`^+⌘+space` on macOS)
|
||||||
Click URL using the keyboard :sc:`open_url`
|
Click URL using the keyboard :sc:`open_url`
|
||||||
Reset the terminal :sc:`reset_terminal`
|
Reset the terminal :sc:`reset_terminal`
|
||||||
Reload :file:`kitty.conf` :sc:`reload_config_file`
|
Reload :file:`kitty.conf` :sc:`reload_config_file` (also :kbd:`^+⌘+f5` on macOS)
|
||||||
Debug :file:`kitty.conf` :sc:`debug_config`
|
Debug :file:`kitty.conf` :sc:`debug_config` (also :kbd:`⌘+option+f6` on macOS)
|
||||||
Pass current selection to program :sc:`pass_selection_to_program`
|
Pass current selection to program :sc:`pass_selection_to_program`
|
||||||
Edit |kitty| config file :sc:`edit_config_file`
|
Edit |kitty| config file :sc:`edit_config_file`
|
||||||
Open a |kitty| shell :sc:`kitty_shell`
|
Open a |kitty| shell :sc:`kitty_shell`
|
||||||
|
|||||||
@ -3329,6 +3329,11 @@ the new conf settings *replace* the old ones.
|
|||||||
'''
|
'''
|
||||||
)
|
)
|
||||||
|
|
||||||
|
map('Reload kitty.conf',
|
||||||
|
'reload_config_file cmd+control+, load_config_file',
|
||||||
|
only='macos'
|
||||||
|
)
|
||||||
|
|
||||||
map('Debug kitty configuration',
|
map('Debug kitty configuration',
|
||||||
'debug_config kitty_mod+f6 debug_config',
|
'debug_config kitty_mod+f6 debug_config',
|
||||||
long_text='''
|
long_text='''
|
||||||
@ -3337,6 +3342,12 @@ its host environment. Useful for debugging issues.
|
|||||||
'''
|
'''
|
||||||
)
|
)
|
||||||
|
|
||||||
|
map('Debug kitty configuration',
|
||||||
|
'debug_config cmd+option+, debug_config',
|
||||||
|
only='macos'
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
map('Send arbitrary text on key presses',
|
map('Send arbitrary text on key presses',
|
||||||
'send_text ctrl+shift+alt+h send_text all Hello World',
|
'send_text ctrl+shift+alt+h send_text all Hello World',
|
||||||
add_to_default=False,
|
add_to_default=False,
|
||||||
|
|||||||
2
kitty/options/types.py
generated
2
kitty/options/types.py
generated
@ -848,6 +848,8 @@ if is_macos:
|
|||||||
defaults.map.append(KeyDefinition(False, KeyAction('kitten', ('unicode_input',)), 12, False, 32, ()))
|
defaults.map.append(KeyDefinition(False, KeyAction('kitten', ('unicode_input',)), 12, False, 32, ()))
|
||||||
defaults.map.append(KeyDefinition(False, KeyAction('edit_config_file'), 8, False, 44, ()))
|
defaults.map.append(KeyDefinition(False, KeyAction('edit_config_file'), 8, False, 44, ()))
|
||||||
defaults.map.append(KeyDefinition(False, KeyAction('clear_terminal', ('reset', True)), 10, False, 114, ()))
|
defaults.map.append(KeyDefinition(False, KeyAction('clear_terminal', ('reset', True)), 10, False, 114, ()))
|
||||||
|
defaults.map.append(KeyDefinition(False, KeyAction('load_config_file'), 12, False, 44, ()))
|
||||||
|
defaults.map.append(KeyDefinition(False, KeyAction('debug_config'), 10, False, 44, ()))
|
||||||
defaults.mouse_map = [
|
defaults.mouse_map = [
|
||||||
# click_url_or_select
|
# click_url_or_select
|
||||||
MouseMapping(0, 0, -2, False, KeyAction('mouse_click_url_or_select')),
|
MouseMapping(0, 0, -2, False, KeyAction('mouse_click_url_or_select')),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user