diff options
| author | duckyriley <[email protected]> | 2026-11-26 10:30:50 -0400 |
|---|---|---|
| committer | duckyriley <[email protected]> | 2026-11-26 10:30:50 -0400 |
| commit | 7a7e3da4103f8dcf3c69f0cc6b9d0cb666e89ce9 (patch) | |
| tree | 2a2bb60c973b861b2bd9a525f513630f784d8b43 /assets | |
| parent | 9ef7ba021629c9fa3e111798c61b35a02dfaae20 (diff) | |
| download | ducky-7a7e3da4103f8dcf3c69f0cc6b9d0cb666e89ce9.tar.gz ducky-7a7e3da4103f8dcf3c69f0cc6b9d0cb666e89ce9.zip | |
Use Command for macOS shortcuts
Diffstat (limited to '')
| -rw-r--r-- | assets/config.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/assets/config.lua b/assets/config.lua index 64a0f39..3a0190d 100644 --- a/assets/config.lua +++ b/assets/config.lua @@ -1,4 +1,4 @@ --- Ducky runs this file on startup; Ctrl+R reloads it. +-- Ducky runs this file on startup. Reload with Cmd+R on macOS or Ctrl+R elsewhere. -- Full Lua 5.4 is available. Only run scripts you trust. -- Your appearance is editable here; bundled themes: ember, glacier, paper, lagoon. -- You can compute settings with Lua and require modules beside this file. @@ -16,6 +16,7 @@ return { border = '#49382a', show_status_bar = true, -- GPUI keystroke -> application action. Remove or remap any entry. + -- On macOS, ctrl means Command except with Tab. The alt modifier means Option. shortcuts = { ['ctrl-t']='new_tab', ['ctrl-w']='close_tab', ['ctrl-c']='copy', ['ctrl-v']='paste', ['ctrl-alt-c']='interrupt', @@ -35,7 +36,7 @@ return { cwd = home, env = { COLORTERM = 'truecolor' }, -- Send any command or escape sequence using a custom shortcut. - -- Keystrokes use GPUI syntax: ctrl-g, alt-h, etc. + -- Keystrokes use the same modifier rules as shortcuts. bindings = { ['ctrl-g'] = 'git status\r', ['ctrl-h'] = 'cd ~\r', |