From 7a7e3da4103f8dcf3c69f0cc6b9d0cb666e89ce9 Mon Sep 17 00:00:00 2001 From: duckyriley Date: Thu, 26 Nov 2026 10:30:50 -0400 Subject: Use Command for macOS shortcuts --- assets/config.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'assets/config.lua') 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', -- cgit v1.2.3