From ae0920a4c1c7af7ba25f9dafcca9d62548a6f54d Mon Sep 17 00:00:00 2001 From: "Thomas G. Lopes" Date: Thu, 12 Mar 2026 21:41:21 +0000 Subject: [PATCH] zellij abbreviation --- fish/files/config.fish | 2 ++ zellij/files/config.kdl | 46 ++++++++++++++++++++++++----------------- 2 files changed, 29 insertions(+), 19 deletions(-) diff --git a/fish/files/config.fish b/fish/files/config.fish index e6b2dc7..47a3714 100644 --- a/fish/files/config.fish +++ b/fish/files/config.fish @@ -34,6 +34,8 @@ status is-interactive; and begin abbr -a txk 'tmux kill-session -t' abbr -a txks 'tmux kill-server' + abbr -a zj 'zellij' + # Aliases alias che chezmoi alias gb 'git branch' diff --git a/zellij/files/config.kdl b/zellij/files/config.kdl index cf84274..b7bfa96 100644 --- a/zellij/files/config.kdl +++ b/zellij/files/config.kdl @@ -1,3 +1,7 @@ +// +// THIS FILE WAS AUTOGENERATED BY ZELLIJ, THE PREVIOUS FILE AT THIS LOCATION WAS COPIED TO: /Users/thomasglopes/.config/zellij/config.kdl.bak +// + keybinds clear-defaults=true { locked { bind "Ctrl l" { SwitchToMode "normal"; } @@ -76,10 +80,10 @@ keybinds clear-defaults=true { bind "up" { MovePane "up"; } bind "right" { MovePane "right"; } bind "h" { MovePane "left"; } - bind "Ctrl m" { SwitchToMode "normal"; } bind "j" { MovePane "down"; } bind "k" { MovePane "up"; } bind "l" { MovePane "right"; } + bind "Ctrl m" { SwitchToMode "normal"; } bind "n" { MovePane; } bind "p" { MovePaneBackwards; } bind "tab" { MovePane; } @@ -133,33 +137,39 @@ keybinds clear-defaults=true { SwitchToMode "normal" } } + shared { + bind "F1" { + MessagePlugin "compact-bar" { + name "toggle_tooltip" + payload "1" + floating false + tooltip "F1" + } + } + } shared_except "locked" { bind "Alt left" { MoveFocusOrTab "left"; } + bind "Alt Shift left" { GoToPreviousTab; } bind "Alt down" { MoveFocus "down"; } bind "Alt up" { MoveFocus "up"; } bind "Alt right" { MoveFocusOrTab "right"; } + bind "Alt Shift right" { GoToNextTab; } bind "Alt +" { Resize "Increase"; } bind "Alt -" { Resize "Decrease"; } bind "Alt =" { Resize "Increase"; } bind "Alt [" { PreviousSwapLayout; } bind "Alt ]" { NextSwapLayout; } bind "Alt f" { ToggleFloatingPanes; } - bind "Ctrl l" { SwitchToMode "locked"; } bind "Alt h" { MoveFocusOrTab "left"; } bind "Alt i" { MoveTab "left"; } bind "Alt j" { MoveFocus "down"; } bind "Alt k" { MoveFocus "up"; } + bind "Ctrl l" { SwitchToMode "locked"; } bind "Alt l" { MoveFocusOrTab "right"; } bind "Alt n" { NewPane; } bind "Alt o" { MoveTab "right"; } bind "Alt p" { TogglePaneInGroup; } bind "Alt Shift p" { ToggleGroupMarking; } - bind "Alt Shift left" { GoToPreviousTab; } - bind "Alt Shift right" { GoToNextTab; } - // bind "Ctrl q" { Quit; } - } - shared_except "locked" "resize" { - bind "Ctrl x" { SwitchToMode "resize"; } } shared_except "locked" "move" { bind "Ctrl m" { SwitchToMode "move"; } @@ -179,6 +189,9 @@ keybinds clear-defaults=true { shared_except "locked" "pane" { bind "Ctrl p" { SwitchToMode "pane"; } } + shared_except "locked" "resize" { + bind "Ctrl x" { SwitchToMode "resize"; } + } shared_except "normal" "locked" "entersearch" { bind "enter" { SwitchToMode "normal"; } } @@ -250,9 +263,9 @@ keybinds clear-defaults=true { // changing these requires a restart to take effect plugins { about location="zellij:about" - compact-bar location="zellij:compact-bar" { - tooltip "F1" - } + compact-bar location="zellij:compact-bar" { + tooltip "F1" + } configuration location="zellij:configuration" filepicker location="zellij:strider" { cwd "/" @@ -286,10 +299,6 @@ web_client { // Choose the theme that is specified in the themes section. // Default: default // -// theme "dracula" - -// Load the matugen-generated theme. -source_file "~/.config/zellij/themes/matugen.kdl" theme "matugen" // Choose the base input mode of zellij. @@ -299,7 +308,7 @@ theme "matugen" // Choose the path to the default shell that zellij will use for opening new panes // Default: $SHELL - +// default_shell "fish" // Choose the path to override cwd that zellij will use for opening new panes @@ -308,9 +317,8 @@ default_shell "fish" // The name of the default layout to load on startup // Default: "default" - +// default_layout "compact" - // The folder in which Zellij will look for layouts // (Requires restart) @@ -512,7 +520,7 @@ default_layout "compact" // Whether to show tips on startup // Default: true // -// show_startup_tips false +show_startup_tips false // Whether to show release notes on first version run // Default: true