zellij: more configuration

This commit is contained in:
Kate 2025-05-22 22:09:33 +02:00
parent 7d2dfbed5c
commit 63ac881eea
2 changed files with 31 additions and 21 deletions

View file

@ -6,6 +6,12 @@ keybinds clear-defaults=true {
locked { locked {
bind "`" { SwitchToMode "normal"; } bind "`" { SwitchToMode "normal"; }
} }
normal {
bind "`" {
WriteChars "`";
SwitchToMode "locked";
}
}
pane { pane {
bind "left" { MoveFocus "left"; } bind "left" { MoveFocus "left"; }
bind "down" { MoveFocus "down"; } bind "down" { MoveFocus "down"; }
@ -160,10 +166,6 @@ keybinds clear-defaults=true {
bind "Alt o" { MoveTab "right"; } bind "Alt o" { MoveTab "right"; }
} }
shared_except "locked" "renametab" "renamepane" { shared_except "locked" "renametab" "renamepane" {
bind "`" {
WriteChars "`";
SwitchToMode "locked";
}
bind "Ctrl q" { Quit; } bind "Ctrl q" { Quit; }
} }
shared_except "locked" "entersearch" { shared_except "locked" "entersearch" {
@ -186,6 +188,14 @@ keybinds clear-defaults=true {
} }
shared_among "normal" "resize" "tab" "scroll" "prompt" "tmux" { shared_among "normal" "resize" "tab" "scroll" "prompt" "tmux" {
bind "p" { SwitchToMode "pane"; } bind "p" { SwitchToMode "pane"; }
bind "/" {
LaunchOrFocusPlugin "file:~/.config/zellij/plugins/zellij_forgot.wasm" {
floating true
}
}
}
shared_except "normal" "locked" {
bind "`" { SwitchToMode "locked"; }
} }
shared_except "locked" "resize" "pane" "tab" "entersearch" "renametab" "renamepane" { shared_except "locked" "resize" "pane" "tab" "entersearch" "renametab" "renamepane" {
bind "r" { SwitchToMode "resize"; } bind "r" { SwitchToMode "resize"; }
@ -244,47 +254,47 @@ plugins {
// Plugins to load in the background when a new session starts // Plugins to load in the background when a new session starts
load_plugins {} load_plugins {}
// Choose the theme that is specified in the themes section. // Choose the theme that is specified in the themes section.
// Default: default // Default: default
// //
theme "solarized-dark" theme "solarized-dark"
// Require a leader key before we run any commands. // Require a leader key before we run any commands.
default_mode "locked" default_mode "locked"
// Uncomment this when we're used enough to the keybinds. :) // Uncomment this when we're used enough to the keybinds. :)
// default_layout "compact" // default_layout "compact"
// The folder in which Zellij will look for layouts // The folder in which Zellij will look for layouts
// (Requires restart) // (Requires restart)
// //
// layout_dir "/tmp" // layout_dir "/tmp"
// The folder in which Zellij will look for themes // The folder in which Zellij will look for themes
// (Requires restart) // (Requires restart)
// //
// theme_dir "/tmp" // theme_dir "/tmp"
// Much scrollback. // Much scrollback.
scroll_buffer_size 100000 scroll_buffer_size 100000
// Keep pane contents if we resurrect a terminal. // Keep pane contents if we resurrect a terminal.
serialize_pane_viewport true serialize_pane_viewport true
// Use the above limit for serializtaion. // Use the above limit for serializtaion.
scrollback_lines_to_serialize 0 scrollback_lines_to_serialize 0
// How often in seconds sessions are serialized // How often in seconds sessions are serialized
// //
// serialization_interval 10000 // serialization_interval 10000
// Whether to show tips on startup // Whether to show tips on startup
// Default: true // Default: true
// //
show_startup_tips true show_startup_tips true
// Whether to show release notes on first version run // Whether to show release notes on first version run
// Default: true // Default: true
// //
// show_release_notes false // show_release_notes false

Binary file not shown.