From 222226719a7c0d6dd7ab9c2a048ff4ce1255ecbc Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Wed, 14 Sep 2022 10:10:40 -0300 Subject: [PATCH] Updated Zellij config to jump between tabs --- .gitignore | 1 + zellij/config.yaml | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/.gitignore b/.gitignore index ad46a1e..017485d 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ vim/.netrwhist nvim/.netrwhist vim/view nvim/spell/* +nvim/plugin/packer_compiled.lua tags emacs.d/.last-package-update-day diff --git a/zellij/config.yaml b/zellij/config.yaml index 23f73c8..a11204a 100644 --- a/zellij/config.yaml +++ b/zellij/config.yaml @@ -18,6 +18,28 @@ keybinds: key: [Alt: Left, ] - action: [MoveFocus: Right, SwitchToMode: Normal,] key: [Alt: Right, ] + # - action: [GoToNextTab, ] + # key: [Alt: PageDown ] + # - action: [GoToPreviousTab, ] + # key: [Ctrl: PageUp ] + - action: [GoToTab: 1,] + key: [ Alt: '1',] + - action: [GoToTab: 2, ] + key: [ Alt: '2',] + - action: [GoToTab: 3, ] + key: [ Alt: '3',] + - action: [GoToTab: 4, ] + key: [ Alt: '4',] + - action: [GoToTab: 5, ] + key: [ Alt: '5',] + - action: [GoToTab: 6, ] + key: [ Alt: '6',] + - action: [GoToTab: 7, ] + key: [ Alt: '7',] + - action: [GoToTab: 8, ] + key: [ Alt: '8',] + - action: [GoToTab: 9, ] + key: [ Alt: '9',] tmux: - action: [Write: [1,], SwitchToMode: Normal,] key: [ Char: 'a', Ctrl: 'a'] @@ -74,6 +96,24 @@ keybinds: key: [Ctrl: 'f', PageDown, Right, Char: 'l',] - action: [PageScrollUp,] key: [Ctrl: 'b', PageUp, Left, Char: 'h',] + - action: [GoToTab: 1, SwitchToMode: Normal, ] + key: [ Alt: '1',] + - action: [GoToTab: 2, SwitchToMode: Normal, ] + key: [ Alt: '2',] + - action: [GoToTab: 3, SwitchToMode: Normal, ] + key: [ Alt: '3',] + - action: [GoToTab: 4, SwitchToMode: Normal, ] + key: [ Alt: '4',] + - action: [GoToTab: 5, SwitchToMode: Normal, ] + key: [ Alt: '5',] + - action: [GoToTab: 6, SwitchToMode: Normal, ] + key: [ Alt: '6',] + - action: [GoToTab: 7, SwitchToMode: Normal, ] + key: [ Alt: '7',] + - action: [GoToTab: 8, SwitchToMode: Normal, ] + key: [ Alt: '8',] + - action: [GoToTab: 9, SwitchToMode: Normal, ] + key: [ Alt: '9',] # Toggle between having pane frames around the panes pane_frames: false