fix: enable zellij copy without stealing Ctrl-C

This commit is contained in:
2026-06-06 14:26:07 +09:00
parent dec46e9ad9
commit 8d7035a4e6
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ window-decoration = true
# keybind # keybind
# Copy/Paste # Copy/Paste
keybind = ctrl+shift+c=copy_to_clipboard keybind = performable:ctrl+shift+c=copy_to_clipboard
keybind = ctrl+shift+v=paste_from_clipboard keybind = ctrl+shift+v=paste_from_clipboard
# create new tab # create new tab
+4 -1
View File
@@ -21,6 +21,7 @@ in
settings = { settings = {
pane_frames = true; pane_frames = true;
copy_clipboard = "system";
copy_on_select = false; copy_on_select = false;
default_mode = "locked"; default_mode = "locked";
default_shell = "/run/current-system/sw/bin/zsh"; default_shell = "/run/current-system/sw/bin/zsh";
@@ -40,7 +41,8 @@ in
bind "Alt J" { Resize "Increase Down"; } bind "Alt J" { Resize "Increase Down"; }
bind "Alt K" { Resize "Increase Up"; } bind "Alt K" { Resize "Increase Up"; }
bind "Alt L" { Resize "Increase Right"; } bind "Alt L" { Resize "Increase Right"; }
bind "Alt c" { Copy; } // Do not bind Ctrl+C here: it must pass through to pane processes as SIGINT.
bind "Alt c" "Ctrl Shift c" { Copy; }
} }
normal { normal {
bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; } bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; }
@@ -49,6 +51,7 @@ in
bind "Alt l" "Alt Right" { MoveFocusOrTab "Right"; } bind "Alt l" "Alt Right" { MoveFocusOrTab "Right"; }
bind "Alt n" { NewPane; } bind "Alt n" { NewPane; }
bind "Alt t" { NewTab; } bind "Alt t" { NewTab; }
bind "Ctrl Shift c" { Copy; }
bind "Alt H" { Resize "Increase Left"; } bind "Alt H" { Resize "Increase Left"; }
bind "Alt J" { Resize "Increase Down"; } bind "Alt J" { Resize "Increase Down"; }
bind "Alt K" { Resize "Increase Up"; } bind "Alt K" { Resize "Increase Up"; }