Fix zellij keybinds

This commit is contained in:
Erwin Boskma 2022-10-30 21:06:40 +01:00
parent a41c19ccc1
commit 457d2b78ef
Signed by: erwin
SSH key fingerprint: SHA256:CyeNoWXd3kjX2Nwu6pDxxdS7OqmPVOy0NavA/KU/ntU

View file

@ -15,20 +15,30 @@ in
scrollback_editor = "${config.eboskma.programs.emacs.package}/bin/emacsclient";
pane_frames = false;
themes = {
dracula = {
fg = [ 248 248 242 ];
bg = [ 40 42 54 ];
black = [ 0 0 0 ];
red = [ 255 85 85 ];
green = [ 80 250 123 ];
yellow = [ 241 250 140 ];
blue = [ 98 114 164 ];
magenta = [ 255 121 198 ];
cyan = [ 139 233 253 ];
white = [ 255 255 255 ];
orange = [ 255 184 108 ];
};
};
keybinds = {
normal = [
{
unbind = [
{ Alt = "h"; }
{ Alt = "Left"; }
{ Alt = "l"; }
{ Alt = "Right"; }
{ Alt = "j"; }
{ Alt = "Down"; }
{ Alt = "k"; }
{ Alt = "Up"; }
{ Ctrl = "n"; }
{ Alt = "n"; }
{ Ctrl = "b"; }
];
}
@ -36,10 +46,6 @@ in
action = [{ SwitchToMode = "Resize"; }];
key = [{ Ctrl = "m"; }];
}
{
action = [{ SwitchToMode = "Tmux"; }];
key = [{ Ctrl = "a"; }];
}
{
action = [{ MoveFocusOrTab = "Left"; }];
key = [{ Alt = "h"; } { Alt = "Left"; }];
@ -64,22 +70,13 @@ in
resize = [
{
unbind = [
{ Char = "h"; }
"Left"
{ Char = "l"; }
"Right"
{ Char = "j"; }
"Down"
{ Char = "k"; }
"Up"
{ Alt = "h"; }
{ Alt = "Left"; }
{ Alt = "l"; }
{ Alt = "Right"; }
{ Alt = "j"; }
{ Alt = "Down"; }
{ Alt = "k"; }
{ Alt = "Up"; }
{ Ctrl = "b"; }
];
}
{
@ -118,27 +115,16 @@ in
pane = [
{
unbind = [
{ Char = "h"; }
"Left"
{ Char = "l"; }
"Right"
{ Char = "j"; }
"Down"
{ Char = "k"; }
"Up"
{ Char = "n"; }
{ Alt = "h"; }
{ Alt = "Left"; }
{ Alt = "l"; }
{ Alt = "Right"; }
{ Alt = "j"; }
{ Alt = "Down"; }
{ Alt = "k"; }
{ Alt = "Up"; }
{ Char = "f"; }
{ Alt = "n"; }
{ Char = "c"; }
{ Ctrl = "n"; }
{ Ctrl = "b"; }
];
}
{
@ -206,23 +192,12 @@ in
move = [
{
unbind = [
{ Char = "h"; }
"Left"
{ Char = "l"; }
"Right"
{ Char = "j"; }
"Down"
{ Char = "k"; }
"Up"
{ Alt = "h"; }
{ Alt = "Left"; }
{ Alt = "l"; }
{ Alt = "Right"; }
{ Alt = "j"; }
{ Alt = "Down"; }
{ Alt = "k"; }
{ Alt = "Up"; }
{ Alt = "n"; }
{ Char = "n"; }
{ Ctrl = "n"; }
];
@ -276,25 +251,15 @@ in
tab = [
{
unbind = [
{ Char = "h"; }
"Left"
{ Char = "l"; }
"Right"
{ Char = "j"; }
"Down"
{ Char = "k"; }
"Up"
{ Alt = "h"; }
{ Alt = "Left"; }
{ Alt = "l"; }
{ Alt = "Right"; }
{ Alt = "j"; }
{ Alt = "Down"; }
{ Alt = "k"; }
{ Alt = "Up"; }
{ Char = "n"; }
{ Alt = "n"; }
{ Ctrl = "n"; }
{ Ctrl = "b"; }
];
}
{
@ -338,24 +303,14 @@ in
scroll = [
{
unbind = [
{ Char = "h"; }
"Left"
{ Char = "l"; }
"Right"
{ Char = "j"; }
"Down"
{ Char = "k"; }
"Up"
{ Alt = "h"; }
{ Alt = "Left"; }
{ Alt = "l"; }
{ Alt = "Right"; }
{ Alt = "j"; }
{ Alt = "Down"; }
{ Alt = "k"; }
{ Alt = "Up"; }
{ Char = "e"; }
{ Ctrl = "n"; }
{ Ctrl = "b"; }
];
}
{
@ -411,25 +366,14 @@ in
entersearch = [
{
unbind = [
{ Char = "h"; }
"Left"
{ Char = "l"; }
"Right"
{ Char = "j"; }
"Down"
{ Char = "k"; }
"Up"
{ Alt = "h"; }
{ Alt = "Left"; }
{ Alt = "l"; }
{ Alt = "Right"; }
{ Alt = "j"; }
{ Alt = "Down"; }
{ Alt = "k"; }
{ Alt = "Up"; }
{ Char = "e"; }
{ Ctrl = "c"; }
{ Alt = "n"; }
];
}
{
@ -461,28 +405,16 @@ in
search = [
{
unbind = [
{ Char = "h"; }
"Left"
{ Char = "l"; }
"Right"
{ Char = "j"; }
"Down"
{ Char = "k"; }
"Up"
{ Alt = "h"; }
{ Alt = "Left"; }
{ Alt = "l"; }
{ Alt = "Right"; }
{ Alt = "j"; }
{ Alt = "Down"; }
{ Alt = "k"; }
{ Alt = "Up"; }
{ Char = "e"; }
{ Ctrl = "c"; }
{ Alt = "n"; }
{ Ctrl = "n"; }
{ Char = "n"; }
{ Char = "p"; }
{ Ctrl = "b"; }
];
}
{
@ -538,15 +470,9 @@ in
renametab = [
{
unbind = [
{ Alt = "h"; }
{ Alt = "Left"; }
{ Alt = "l"; }
{ Alt = "Right"; }
{ Alt = "j"; }
{ Alt = "Down"; }
{ Alt = "k"; }
{ Alt = "Up"; }
{ Alt = "n"; }
];
}
{
@ -574,15 +500,9 @@ in
renamepane = [
{
unbind = [
{ Alt = "h"; }
{ Alt = "Left"; }
{ Alt = "l"; }
{ Alt = "Right"; }
{ Alt = "j"; }
{ Alt = "Down"; }
{ Alt = "k"; }
{ Alt = "Up"; }
{ Alt = "n"; }
];
}
{
@ -610,16 +530,11 @@ in
session = [
{
unbind = [
{ Alt = "h"; }
{ Alt = "Left"; }
{ Alt = "l"; }
{ Alt = "Right"; }
{ Alt = "j"; }
{ Alt = "Down"; }
{ Alt = "k"; }
{ Alt = "Up"; }
{ Alt = "n"; }
{ Ctrl = "n"; }
{ Ctrl = "b"; }
];
}
{
@ -650,66 +565,7 @@ in
tmux = [
{
unbind = [
{ Char = "h"; }
"Left"
{ Char = "l"; }
"Right"
{ Char = "j"; }
"Down"
{ Char = "k"; }
"Up"
{ Alt = "h"; }
{ Alt = "Left"; }
{ Alt = "l"; }
{ Alt = "Right"; }
{ Alt = "j"; }
{ Alt = "Down"; }
{ Alt = "k"; }
{ Alt = "Up"; }
{ Alt = "n"; }
{ Ctrl = "n"; }
];
}
{
action = [{ SwitchToMode = "Resize"; }];
key = [{ Ctrl = "m"; }];
}
{
action = [{ MoveFocus = "Left"; } { SwitchToMode = "Normal"; }];
key = [{ Char = "h"; }];
}
{
action = [{ MoveFocus = "Right"; } { SwitchToMode = "Normal"; }];
key = [{ Char = "i"; }];
}
{
action = [{ MoveFocus = "Down"; } { SwitchToMode = "Normal"; }];
key = [{ Char = "n"; }];
}
{
action = [{ MoveFocus = "Up"; } { SwitchToMode = "Normal"; }];
key = [{ Char = "e"; }];
}
{
action = [{ NewPane = null; }];
key = [{ Alt = "n"; }];
}
{
action = [{ MoveFocusOrTab = "Left"; }];
key = [{ Alt = "h"; } { Alt = "Left"; }];
}
{
action = [{ MoveFocusOrTab = "Right"; }];
key = [{ Alt = "i"; } { Alt = "Right"; }];
}
{
action = [{ MoveFocus = "Down"; }];
key = [{ Alt = "n"; } { Alt = "Down"; }];
}
{
action = [{ MoveFocus = "Up"; }];
key = [{ Alt = "e"; } { Alt = "Up"; }];
unbind = true;
}
];
};