add zellij config
This commit is contained in:
parent
7e4da5dff9
commit
cbf59bea4b
5 changed files with 435 additions and 359 deletions
|
|
@ -1,92 +1 @@
|
||||||
theme = catppuccin-macchiato
|
theme = catppuccin-macchiato
|
||||||
|
|
||||||
# Common
|
|
||||||
|
|
||||||
keybind = ctrl+space>o=write_selection_file:open
|
|
||||||
keybind = ctrl+space>shift+o=write_selection_file:paste
|
|
||||||
|
|
||||||
keybind = ctrl+space>alt+o=write_scrollback_file:open
|
|
||||||
keybind = ctrl+space>alt+shift+o=write_scrollback_file:paste
|
|
||||||
|
|
||||||
keybind = ctrl+comma=open_config
|
|
||||||
keybind = ctrl+space>shift+r=reload_config
|
|
||||||
|
|
||||||
keybind = ctrl+shift+c=copy_to_clipboard
|
|
||||||
keybind = ctrl+shift+i=inspector:toggle
|
|
||||||
keybind = ctrl+shift+v=paste_from_clipboard
|
|
||||||
keybind = shift+insert=paste_from_selection
|
|
||||||
|
|
||||||
# Navigation
|
|
||||||
keybind = alt+f4=close_window
|
|
||||||
keybind = ctrl+shift+w=close_surface
|
|
||||||
keybind = ctrl+space>shift+t=close_surface
|
|
||||||
keybind = ctrl+shift+n=new_window
|
|
||||||
keybind = ctrl+shift+q=quit
|
|
||||||
|
|
||||||
keybind = ctrl+space>shift+f=toggle_fullscreen
|
|
||||||
|
|
||||||
keybind = ctrl+alt+j=jump_to_prompt:1
|
|
||||||
keybind = ctrl+alt+k=jump_to_prompt:-1
|
|
||||||
|
|
||||||
keybind = ctrl+shift+a=select_all
|
|
||||||
keybind = shift+right=adjust_selection:right
|
|
||||||
keybind = shift+down=adjust_selection:down
|
|
||||||
keybind = shift+up=adjust_selection:up
|
|
||||||
keybind = shift+left=adjust_selection:left
|
|
||||||
|
|
||||||
keybind = shift+end=scroll_to_bottom
|
|
||||||
keybind = shift+home=scroll_to_top
|
|
||||||
keybind = shift+page_up=scroll_page_up
|
|
||||||
keybind = shift+page_down=scroll_page_down
|
|
||||||
|
|
||||||
# Config
|
|
||||||
keybind = ctrl+equal=increase_font_size:1
|
|
||||||
keybind = ctrl+minus=decrease_font_size:1
|
|
||||||
keybind = ctrl+plus=increase_font_size:1
|
|
||||||
keybind = ctrl+zero=reset_font_size
|
|
||||||
|
|
||||||
# Splits
|
|
||||||
keybind = ctrl+space>s=new_split:right
|
|
||||||
keybind = ctrl+space>v=new_split:down
|
|
||||||
|
|
||||||
keybind = ctrl+space>h=goto_split:left
|
|
||||||
keybind = ctrl+space>j=goto_split:bottom
|
|
||||||
keybind = ctrl+space>k=goto_split:top
|
|
||||||
keybind = ctrl+space>l=goto_split:right
|
|
||||||
|
|
||||||
keybind = ctrl+space>left=goto_split:left
|
|
||||||
keybind = ctrl+space>down=goto_split:bottom
|
|
||||||
keybind = ctrl+space>up=goto_split:top
|
|
||||||
keybind = ctrl+space>right=goto_split:right
|
|
||||||
|
|
||||||
keybind = ctrl+space>m=toggle_split_zoom
|
|
||||||
|
|
||||||
keybind = super+ctrl+left_bracket=goto_split:previous
|
|
||||||
keybind = super+ctrl+right_bracket=goto_split:next
|
|
||||||
|
|
||||||
keybind = super+ctrl+shift+right=resize_split:right,10
|
|
||||||
keybind = super+ctrl+shift+down=resize_split:down,10
|
|
||||||
keybind = super+ctrl+shift+up=resize_split:up,10
|
|
||||||
keybind = super+ctrl+shift+left=resize_split:left,10
|
|
||||||
keybind = ctrl+space>ctrl+zero=equalize_splits
|
|
||||||
|
|
||||||
# Tabs
|
|
||||||
keybind = ctrl+space>one=goto_tab:1
|
|
||||||
keybind = ctrl+space>two=goto_tab:2
|
|
||||||
keybind = ctrl+space>three=goto_tab:3
|
|
||||||
keybind = ctrl+space>four=goto_tab:4
|
|
||||||
keybind = ctrl+space>five=goto_tab:5
|
|
||||||
keybind = ctrl+space>six=goto_tab:6
|
|
||||||
keybind = ctrl+space>seven=goto_tab:7
|
|
||||||
keybind = ctrl+space>eight=goto_tab:8
|
|
||||||
keybind = ctrl+space>nine=last_tab
|
|
||||||
|
|
||||||
keybind = ctrl+page_up=previous_tab
|
|
||||||
keybind = ctrl+page_down=next_tab
|
|
||||||
keybind = ctrl+shift+left=previous_tab
|
|
||||||
keybind = ctrl+shift+right=next_tab
|
|
||||||
keybind = ctrl+space>shift+tab=previous_tab
|
|
||||||
keybind = ctrl+space>tab=next_tab
|
|
||||||
|
|
||||||
keybind = ctrl+space>t=new_tab
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,15 @@ g = [
|
||||||
":reload-all"
|
":reload-all"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[keys.normal.space]
|
||||||
|
e = [
|
||||||
|
':sh rm -f /tmp/unique-file',
|
||||||
|
':insert-output yazi %{buffer_name} --chooser-file=/tmp/unique-file',
|
||||||
|
':insert-output echo "\x1b[?1049h\x1b[?2004h" > /dev/tty',
|
||||||
|
':open %sh{/bin/cat /tmp/unique-file}',
|
||||||
|
':redraw',
|
||||||
|
]
|
||||||
|
|
||||||
[editor]
|
[editor]
|
||||||
line-number = "relative"
|
line-number = "relative"
|
||||||
cursorline = true
|
cursorline = true
|
||||||
|
|
|
||||||
|
|
@ -1,233 +1,359 @@
|
||||||
// If you'd like to override the default keybindings completely, be sure to change "keybinds" to "keybinds clear-defaults=true"
|
//
|
||||||
|
// THIS FILE WAS AUTOGENERATED BY ZELLIJ, THE PREVIOUS FILE AT THIS LOCATION WAS COPIED TO: /home/aleidk/.config/zellij/config.kdl.bak
|
||||||
|
//
|
||||||
|
|
||||||
keybinds clear-defaults=true {
|
keybinds clear-defaults=true {
|
||||||
normal {
|
normal {
|
||||||
// uncomment this and adjust key if using copy_on_select=false
|
bind "g" {
|
||||||
// bind "Alt c" { Copy; }
|
Run "lazygit" {
|
||||||
|
floating true
|
||||||
|
close_on_exit true
|
||||||
|
x "10%"
|
||||||
|
y "10%"
|
||||||
|
height "80%"
|
||||||
|
width "80%"
|
||||||
|
}
|
||||||
|
Resize "increase";
|
||||||
|
SwitchToMode "locked";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
locked {
|
locked {
|
||||||
bind "Ctrl g" { SwitchToMode "Normal"; }
|
bind "Ctrl space" { SwitchToMode "normal"; }
|
||||||
}
|
|
||||||
resize {
|
|
||||||
bind "Ctrl n" { SwitchToMode "Normal"; }
|
|
||||||
bind "h" "Left" { Resize "Increase Left"; }
|
|
||||||
bind "j" "Down" { Resize "Increase Down"; }
|
|
||||||
bind "k" "Up" { Resize "Increase Up"; }
|
|
||||||
bind "l" "Right" { Resize "Increase Right"; }
|
|
||||||
bind "H" { Resize "Decrease Left"; }
|
|
||||||
bind "J" { Resize "Decrease Down"; }
|
|
||||||
bind "K" { Resize "Decrease Up"; }
|
|
||||||
bind "L" { Resize "Decrease Right"; }
|
|
||||||
bind "=" "+" { Resize "Increase"; }
|
|
||||||
bind "-" { Resize "Decrease"; }
|
|
||||||
}
|
}
|
||||||
pane {
|
pane {
|
||||||
bind "Ctrl p" { SwitchToMode "Normal"; }
|
bind "left" { MoveFocus "left"; }
|
||||||
bind "h" "Left" { MoveFocus "Left"; }
|
bind "down" { MoveFocus "down"; }
|
||||||
bind "l" "Right" { MoveFocus "Right"; }
|
bind "up" { MoveFocus "up"; }
|
||||||
bind "j" "Down" { MoveFocus "Down"; }
|
bind "right" { MoveFocus "right"; }
|
||||||
bind "k" "Up" { MoveFocus "Up"; }
|
bind "c" { SwitchToMode "renamepane"; PaneNameInput 0; }
|
||||||
bind "p" { SwitchFocus; }
|
bind "d" { NewPane "down"; SwitchToMode "locked"; }
|
||||||
bind "n" { NewPane; SwitchToMode "Normal"; }
|
bind "e" { TogglePaneEmbedOrFloating; SwitchToMode "locked"; }
|
||||||
bind "d" { NewPane "Down"; SwitchToMode "Normal"; }
|
bind "f" { ToggleFocusFullscreen; SwitchToMode "locked"; }
|
||||||
bind "r" { NewPane "Right"; SwitchToMode "Normal"; }
|
bind "h" { MoveFocus "left"; }
|
||||||
bind "x" { CloseFocus; SwitchToMode "Normal"; }
|
bind "i" { TogglePanePinned; SwitchToMode "locked"; }
|
||||||
bind "f" { ToggleFocusFullscreen; SwitchToMode "Normal"; }
|
bind "j" { MoveFocus "down"; }
|
||||||
bind "z" { TogglePaneFrames; SwitchToMode "Normal"; }
|
bind "k" { MoveFocus "up"; }
|
||||||
bind "w" { ToggleFloatingPanes; SwitchToMode "Normal"; }
|
bind "l" { MoveFocus "right"; }
|
||||||
bind "e" { TogglePaneEmbedOrFloating; SwitchToMode "Normal"; }
|
bind "n" { NewPane; SwitchToMode "locked"; }
|
||||||
bind "c" { SwitchToMode "RenamePane"; PaneNameInput 0;}
|
bind "p" { SwitchToMode "normal"; }
|
||||||
}
|
bind "r" { NewPane "right"; SwitchToMode "locked"; }
|
||||||
move {
|
bind "w" { ToggleFloatingPanes; SwitchToMode "locked"; }
|
||||||
bind "Ctrl h" { SwitchToMode "Normal"; }
|
bind "x" { CloseFocus; SwitchToMode "locked"; }
|
||||||
bind "n" "Tab" { MovePane; }
|
bind "z" { TogglePaneFrames; SwitchToMode "locked"; }
|
||||||
bind "p" { MovePaneBackwards; }
|
bind "tab" { SwitchFocus; }
|
||||||
bind "h" "Left" { MovePane "Left"; }
|
|
||||||
bind "j" "Down" { MovePane "Down"; }
|
|
||||||
bind "k" "Up" { MovePane "Up"; }
|
|
||||||
bind "l" "Right" { MovePane "Right"; }
|
|
||||||
}
|
}
|
||||||
tab {
|
tab {
|
||||||
bind "Ctrl t" { SwitchToMode "Normal"; }
|
bind "left" { GoToPreviousTab; }
|
||||||
bind "r" { SwitchToMode "RenameTab"; TabNameInput 0; }
|
bind "down" { GoToNextTab; }
|
||||||
bind "h" "Left" "Up" "k" { GoToPreviousTab; }
|
bind "up" { GoToPreviousTab; }
|
||||||
bind "l" "Right" "Down" "j" { GoToNextTab; }
|
bind "right" { GoToNextTab; }
|
||||||
bind "n" { NewTab; SwitchToMode "Normal"; }
|
bind "1" { GoToTab 1; SwitchToMode "locked"; }
|
||||||
bind "x" { CloseTab; SwitchToMode "Normal"; }
|
bind "2" { GoToTab 2; SwitchToMode "locked"; }
|
||||||
bind "s" { ToggleActiveSyncTab; SwitchToMode "Normal"; }
|
bind "4" { GoToTab 4; SwitchToMode "locked"; }
|
||||||
bind "1" { GoToTab 1; SwitchToMode "Normal"; }
|
bind "5" { GoToTab 5; SwitchToMode "locked"; }
|
||||||
bind "2" { GoToTab 2; SwitchToMode "Normal"; }
|
bind "6" { GoToTab 6; SwitchToMode "locked"; }
|
||||||
bind "3" { GoToTab 3; SwitchToMode "Normal"; }
|
bind "7" { GoToTab 7; SwitchToMode "locked"; }
|
||||||
bind "4" { GoToTab 4; SwitchToMode "Normal"; }
|
bind "8" { GoToTab 8; SwitchToMode "locked"; }
|
||||||
bind "5" { GoToTab 5; SwitchToMode "Normal"; }
|
bind "9" { GoToTab 9; SwitchToMode "locked"; }
|
||||||
bind "6" { GoToTab 6; SwitchToMode "Normal"; }
|
bind "[" { BreakPaneLeft; SwitchToMode "locked"; }
|
||||||
bind "7" { GoToTab 7; SwitchToMode "Normal"; }
|
bind "]" { BreakPaneRight; SwitchToMode "locked"; }
|
||||||
bind "8" { GoToTab 8; SwitchToMode "Normal"; }
|
bind "b" { BreakPane; SwitchToMode "locked"; }
|
||||||
bind "9" { GoToTab 9; SwitchToMode "Normal"; }
|
bind "h" { GoToPreviousTab; }
|
||||||
bind "Tab" { ToggleTab; }
|
bind "j" { GoToNextTab; }
|
||||||
|
bind "k" { GoToPreviousTab; }
|
||||||
|
bind "l" { GoToNextTab; }
|
||||||
|
bind "n" { NewTab; SwitchToMode "locked"; }
|
||||||
|
bind "r" { SwitchToMode "renametab"; TabNameInput 0; }
|
||||||
|
bind "s" { ToggleActiveSyncTab; SwitchToMode "locked"; }
|
||||||
|
bind "t" { SwitchToMode "normal"; }
|
||||||
|
bind "x" { CloseTab; SwitchToMode "locked"; }
|
||||||
|
bind "tab" { ToggleTab; }
|
||||||
|
}
|
||||||
|
resize {
|
||||||
|
bind "left" { Resize "Increase left"; }
|
||||||
|
bind "down" { Resize "Increase down"; }
|
||||||
|
bind "up" { Resize "Increase up"; }
|
||||||
|
bind "right" { Resize "Increase right"; }
|
||||||
|
bind "+" { Resize "Increase"; }
|
||||||
|
bind "-" { Resize "Decrease"; }
|
||||||
|
bind "=" { Resize "Increase"; }
|
||||||
|
bind "H" { Resize "Decrease left"; }
|
||||||
|
bind "J" { Resize "Decrease down"; }
|
||||||
|
bind "K" { Resize "Decrease up"; }
|
||||||
|
bind "L" { Resize "Decrease right"; }
|
||||||
|
bind "h" { Resize "Increase left"; }
|
||||||
|
bind "j" { Resize "Increase down"; }
|
||||||
|
bind "k" { Resize "Increase up"; }
|
||||||
|
bind "l" { Resize "Increase right"; }
|
||||||
|
bind "r" { SwitchToMode "normal"; }
|
||||||
|
}
|
||||||
|
move {
|
||||||
|
bind "left" { MovePane "left"; }
|
||||||
|
bind "down" { MovePane "down"; }
|
||||||
|
bind "up" { MovePane "up"; }
|
||||||
|
bind "right" { MovePane "right"; }
|
||||||
|
bind "h" { MovePane "left"; }
|
||||||
|
bind "j" { MovePane "down"; }
|
||||||
|
bind "k" { MovePane "up"; }
|
||||||
|
bind "l" { MovePane "right"; }
|
||||||
|
bind "m" { SwitchToMode "normal"; }
|
||||||
|
bind "n" { MovePane; }
|
||||||
|
bind "p" { MovePaneBackwards; }
|
||||||
|
bind "tab" { MovePane; }
|
||||||
}
|
}
|
||||||
scroll {
|
scroll {
|
||||||
bind "Ctrl s" { SwitchToMode "Normal"; }
|
bind "Alt left" { MoveFocusOrTab "left"; SwitchToMode "locked"; }
|
||||||
bind "e" { EditScrollback; SwitchToMode "Normal"; }
|
bind "Alt down" { MoveFocus "down"; SwitchToMode "locked"; }
|
||||||
bind "s" { SwitchToMode "EnterSearch"; SearchInput 0; }
|
bind "Alt up" { MoveFocus "up"; SwitchToMode "locked"; }
|
||||||
bind "Ctrl c" { ScrollToBottom; SwitchToMode "Normal"; }
|
bind "Alt right" { MoveFocusOrTab "right"; SwitchToMode "locked"; }
|
||||||
bind "j" "Down" { ScrollDown; }
|
bind "e" { EditScrollback; SwitchToMode "locked"; }
|
||||||
bind "k" "Up" { ScrollUp; }
|
bind "f" { SwitchToMode "entersearch"; SearchInput 0; }
|
||||||
bind "Ctrl f" "PageDown" "Right" "l" { PageScrollDown; }
|
bind "Alt h" { MoveFocusOrTab "left"; SwitchToMode "locked"; }
|
||||||
bind "Ctrl b" "PageUp" "Left" "h" { PageScrollUp; }
|
bind "Alt j" { MoveFocus "down"; SwitchToMode "locked"; }
|
||||||
bind "d" { HalfPageScrollDown; }
|
bind "Alt k" { MoveFocus "up"; SwitchToMode "locked"; }
|
||||||
bind "u" { HalfPageScrollUp; }
|
bind "Alt l" { MoveFocusOrTab "right"; SwitchToMode "locked"; }
|
||||||
// uncomment this and adjust key if using copy_on_select=false
|
bind "s" { SwitchToMode "normal"; }
|
||||||
// bind "Alt c" { Copy; }
|
|
||||||
}
|
}
|
||||||
search {
|
search {
|
||||||
bind "Ctrl s" { SwitchToMode "Normal"; }
|
|
||||||
bind "Ctrl c" { ScrollToBottom; SwitchToMode "Normal"; }
|
|
||||||
bind "j" "Down" { ScrollDown; }
|
|
||||||
bind "k" "Up" { ScrollUp; }
|
|
||||||
bind "Ctrl f" "PageDown" "Right" "l" { PageScrollDown; }
|
|
||||||
bind "Ctrl b" "PageUp" "Left" "h" { PageScrollUp; }
|
|
||||||
bind "d" { HalfPageScrollDown; }
|
|
||||||
bind "u" { HalfPageScrollUp; }
|
|
||||||
bind "n" { Search "down"; }
|
|
||||||
bind "p" { Search "up"; }
|
|
||||||
bind "c" { SearchToggleOption "CaseSensitivity"; }
|
bind "c" { SearchToggleOption "CaseSensitivity"; }
|
||||||
bind "w" { SearchToggleOption "Wrap"; }
|
bind "n" { Search "down"; }
|
||||||
bind "o" { SearchToggleOption "WholeWord"; }
|
bind "o" { SearchToggleOption "WholeWord"; }
|
||||||
}
|
bind "p" { Search "up"; }
|
||||||
entersearch {
|
bind "w" { SearchToggleOption "Wrap"; }
|
||||||
bind "Ctrl c" "Esc" { SwitchToMode "Scroll"; }
|
|
||||||
bind "Enter" { SwitchToMode "Search"; }
|
|
||||||
}
|
|
||||||
renametab {
|
|
||||||
bind "Ctrl c" { SwitchToMode "Normal"; }
|
|
||||||
bind "Esc" { UndoRenameTab; SwitchToMode "Tab"; }
|
|
||||||
}
|
|
||||||
renamepane {
|
|
||||||
bind "Ctrl c" { SwitchToMode "Normal"; }
|
|
||||||
bind "Esc" { UndoRenamePane; SwitchToMode "Pane"; }
|
|
||||||
}
|
}
|
||||||
session {
|
session {
|
||||||
bind "Ctrl o" { SwitchToMode "Normal"; }
|
bind "a" {
|
||||||
bind "Ctrl s" { SwitchToMode "Scroll"; }
|
LaunchOrFocusPlugin "zellij:about" {
|
||||||
bind "q" { Quit; }
|
floating true
|
||||||
|
move_to_focused_tab true
|
||||||
|
}
|
||||||
|
SwitchToMode "locked"
|
||||||
|
}
|
||||||
|
bind "c" {
|
||||||
|
LaunchOrFocusPlugin "configuration" {
|
||||||
|
floating true
|
||||||
|
move_to_focused_tab true
|
||||||
|
}
|
||||||
|
SwitchToMode "locked"
|
||||||
|
}
|
||||||
bind "d" { Detach; }
|
bind "d" { Detach; }
|
||||||
|
bind "o" { SwitchToMode "normal"; }
|
||||||
|
bind "p" {
|
||||||
|
LaunchOrFocusPlugin "plugin-manager" {
|
||||||
|
floating true
|
||||||
|
move_to_focused_tab true
|
||||||
|
}
|
||||||
|
SwitchToMode "locked"
|
||||||
|
}
|
||||||
|
bind "w" {
|
||||||
|
LaunchOrFocusPlugin "session-manager" {
|
||||||
|
floating true
|
||||||
|
move_to_focused_tab true
|
||||||
|
}
|
||||||
|
SwitchToMode "locked"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
tmux {
|
shared_among "normal" "locked" {
|
||||||
bind "[" { SwitchToMode "Scroll"; }
|
bind "Alt left" { MoveFocusOrTab "left"; }
|
||||||
bind "Ctrl b" { Write 2; SwitchToMode "Normal"; }
|
bind "Alt down" { MoveFocus "down"; }
|
||||||
bind "\"" { NewPane "Down"; SwitchToMode "Normal"; }
|
bind "Alt up" { MoveFocus "up"; }
|
||||||
bind "%" { NewPane "Right"; SwitchToMode "Normal"; }
|
bind "Alt right" { MoveFocusOrTab "right"; }
|
||||||
bind "z" { ToggleFocusFullscreen; SwitchToMode "Normal"; }
|
bind "Alt +" { Resize "Increase"; }
|
||||||
bind "c" { NewTab; SwitchToMode "Normal"; }
|
|
||||||
bind "," { SwitchToMode "RenameTab"; }
|
|
||||||
bind "p" { GoToPreviousTab; SwitchToMode "Normal"; }
|
|
||||||
bind "n" { GoToNextTab; SwitchToMode "Normal"; }
|
|
||||||
bind "Left" { MoveFocus "Left"; SwitchToMode "Normal"; }
|
|
||||||
bind "Right" { MoveFocus "Right"; SwitchToMode "Normal"; }
|
|
||||||
bind "Down" { MoveFocus "Down"; SwitchToMode "Normal"; }
|
|
||||||
bind "Up" { MoveFocus "Up"; SwitchToMode "Normal"; }
|
|
||||||
bind "h" { MoveFocus "Left"; SwitchToMode "Normal"; }
|
|
||||||
bind "l" { MoveFocus "Right"; SwitchToMode "Normal"; }
|
|
||||||
bind "j" { MoveFocus "Down"; SwitchToMode "Normal"; }
|
|
||||||
bind "k" { MoveFocus "Up"; SwitchToMode "Normal"; }
|
|
||||||
bind "o" { FocusNextPane; }
|
|
||||||
bind "d" { Detach; }
|
|
||||||
bind "Space" { NextSwapLayout; }
|
|
||||||
bind "x" { CloseFocus; SwitchToMode "Normal"; }
|
|
||||||
}
|
|
||||||
shared_except "locked" {
|
|
||||||
bind "Ctrl g" { SwitchToMode "Locked"; }
|
|
||||||
bind "Alt n" { NewPane; }
|
|
||||||
bind "Alt h" "Alt Left" { MoveFocusOrTab "Left"; }
|
|
||||||
bind "Alt l" "Alt Right" { MoveFocusOrTab "Right"; }
|
|
||||||
bind "Alt j" "Alt Down" { MoveFocus "Down"; }
|
|
||||||
bind "Alt k" "Alt Up" { MoveFocus "Up"; }
|
|
||||||
bind "Alt =" "Alt +" { Resize "Increase"; }
|
|
||||||
bind "Alt -" { Resize "Decrease"; }
|
bind "Alt -" { Resize "Decrease"; }
|
||||||
bind "Alt [" { PreviousSwapLayout; }
|
bind "Alt =" { Resize "Increase"; }
|
||||||
bind "Alt ]" { NextSwapLayout; }
|
bind "Alt {" { PreviousSwapLayout; }
|
||||||
|
bind "Alt }" { NextSwapLayout; }
|
||||||
|
bind "Alt f" { ToggleFloatingPanes; }
|
||||||
|
bind "Alt h" { MoveFocusOrTab "left"; }
|
||||||
|
bind "Alt i" { MoveTab "left"; }
|
||||||
|
bind "Alt j" { MoveFocus "down"; }
|
||||||
|
bind "Alt k" { MoveFocus "up"; }
|
||||||
|
bind "Alt l" { MoveFocusOrTab "right"; }
|
||||||
|
bind "Alt n" { NewPane; }
|
||||||
|
bind "Alt o" { MoveTab "right"; }
|
||||||
}
|
}
|
||||||
shared_except "normal" "locked" {
|
|
||||||
bind "Enter" "Esc" { SwitchToMode "Normal"; }
|
shared_except "locked" {
|
||||||
|
bind "Alt e" {
|
||||||
|
LaunchPlugin "filepicker" {
|
||||||
|
floating true // uncomment this to have the filepicker opened in a floating window
|
||||||
|
close_on_selection true // comment this out to have the filepicker remain open even after selecting a file
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
shared_except "pane" "locked" {
|
shared_except "locked" "renametab" "renamepane" {
|
||||||
bind "Ctrl p" { SwitchToMode "Pane"; }
|
bind "Ctrl q" { Quit; }
|
||||||
}
|
}
|
||||||
shared_except "resize" "locked" {
|
shared_except "locked" "entersearch" {
|
||||||
bind "Ctrl n" { SwitchToMode "Resize"; }
|
bind "enter" { SwitchToMode "locked"; }
|
||||||
}
|
}
|
||||||
shared_except "scroll" "locked" {
|
shared_except "locked" "entersearch" "renametab" "renamepane" "prompt" "tmux" {
|
||||||
bind "Ctrl s" { SwitchToMode "Scroll"; }
|
bind "Ctrl space" { SwitchToMode "locked"; }
|
||||||
}
|
}
|
||||||
shared_except "session" "locked" {
|
shared_except "locked" "entersearch" "renametab" "renamepane" {
|
||||||
bind "Ctrl o" { SwitchToMode "Session"; }
|
bind "esc" { SwitchToMode "locked"; }
|
||||||
}
|
}
|
||||||
shared_except "tab" "locked" {
|
shared_except "locked" "entersearch" "renametab" "renamepane" "move" {
|
||||||
bind "Ctrl t" { SwitchToMode "Tab"; }
|
bind "m" { SwitchToMode "move"; }
|
||||||
}
|
}
|
||||||
shared_except "move" "locked" {
|
shared_except "locked" "entersearch" "search" "renametab" "renamepane" "session" {
|
||||||
bind "Ctrl h" { SwitchToMode "Move"; }
|
bind "o" { SwitchToMode "session"; }
|
||||||
}
|
}
|
||||||
shared_except "tmux" "locked" {
|
shared_except "locked" "tab" "entersearch" "renametab" "renamepane" {
|
||||||
bind "Ctrl b" { SwitchToMode "Tmux"; }
|
bind "t" { SwitchToMode "tab"; }
|
||||||
|
}
|
||||||
|
shared_except "locked" "tab" "scroll" "entersearch" "renametab" "renamepane" {
|
||||||
|
bind "s" { SwitchToMode "scroll"; }
|
||||||
|
}
|
||||||
|
shared_among "normal" "resize" "tab" "scroll" "prompt" "tmux" {
|
||||||
|
bind "p" { SwitchToMode "pane"; }
|
||||||
|
}
|
||||||
|
shared_except "locked" "resize" "pane" "tab" "entersearch" "renametab" "renamepane" {
|
||||||
|
bind "r" { SwitchToMode "resize"; }
|
||||||
|
}
|
||||||
|
shared_among "scroll" "search" {
|
||||||
|
bind "PageDown" { PageScrollDown; }
|
||||||
|
bind "PageUp" { PageScrollUp; }
|
||||||
|
bind "left" { PageScrollUp; }
|
||||||
|
bind "down" { ScrollDown; }
|
||||||
|
bind "up" { ScrollUp; }
|
||||||
|
bind "right" { PageScrollDown; }
|
||||||
|
bind "Ctrl b" { PageScrollUp; }
|
||||||
|
bind "Ctrl c" { ScrollToBottom; SwitchToMode "locked"; }
|
||||||
|
bind "d" { HalfPageScrollDown; }
|
||||||
|
bind "Ctrl f" { PageScrollDown; }
|
||||||
|
bind "h" { PageScrollUp; }
|
||||||
|
bind "j" { ScrollDown; }
|
||||||
|
bind "k" { ScrollUp; }
|
||||||
|
bind "l" { PageScrollDown; }
|
||||||
|
bind "u" { HalfPageScrollUp; }
|
||||||
|
}
|
||||||
|
entersearch {
|
||||||
|
bind "Ctrl c" { SwitchToMode "scroll"; }
|
||||||
|
bind "esc" { SwitchToMode "scroll"; }
|
||||||
|
bind "enter" { SwitchToMode "search"; }
|
||||||
|
}
|
||||||
|
shared_among "entersearch" "prompt" "tmux" {
|
||||||
|
bind "Ctrl g" { SwitchToMode "locked"; }
|
||||||
|
}
|
||||||
|
renametab {
|
||||||
|
bind "esc" { UndoRenameTab; SwitchToMode "tab"; }
|
||||||
|
}
|
||||||
|
shared_among "renametab" "renamepane" {
|
||||||
|
bind "Ctrl c" { SwitchToMode "locked"; }
|
||||||
|
}
|
||||||
|
renamepane {
|
||||||
|
bind "esc" { UndoRenamePane; SwitchToMode "pane"; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Plugin aliases - can be used to change the implementation of Zellij
|
||||||
|
// changing these requires a restart to take effect
|
||||||
plugins {
|
plugins {
|
||||||
tab-bar { path "tab-bar"; }
|
about location="zellij:about"
|
||||||
status-bar { path "status-bar"; }
|
compact-bar location="zellij:compact-bar"
|
||||||
strider { path "strider"; }
|
configuration location="zellij:configuration"
|
||||||
compact-bar { path "compact-bar"; }
|
filepicker location="zellij:strider" {
|
||||||
|
cwd "/home/aleidk"
|
||||||
|
}
|
||||||
|
plugin-manager location="zellij:plugin-manager"
|
||||||
|
session-manager location="zellij:session-manager"
|
||||||
|
status-bar location="zellij:status-bar"
|
||||||
|
strider location="zellij:strider"
|
||||||
|
tab-bar location="zellij:tab-bar"
|
||||||
|
welcome-screen location="zellij:session-manager" {
|
||||||
|
welcome_screen true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Choose what to do when zellij receives SIGTERM, SIGINT, SIGQUIT or SIGHUP
|
// Plugins to load in the background when a new session starts
|
||||||
// eg. when terminal window with an active zellij session is closed
|
// eg. "file:/path/to/my-plugin.wasm"
|
||||||
// Options:
|
// eg. "https://example.com/my-plugin.wasm"
|
||||||
// - detach (Default)
|
load_plugins {
|
||||||
// - quit
|
}
|
||||||
//
|
|
||||||
// on_force_close "quit"
|
|
||||||
|
|
||||||
// Send a request for a simplified ui (without arrow fonts) to plugins
|
// Use a simplified UI without special fonts (arrow glyphs)
|
||||||
// Options:
|
// Options:
|
||||||
// - true
|
// - true
|
||||||
// - false (Default)
|
// - false (Default)
|
||||||
//
|
//
|
||||||
simplified_ui true
|
simplified_ui true
|
||||||
|
|
||||||
|
// Choose the theme that is specified in the themes section.
|
||||||
|
// Default: default
|
||||||
|
//
|
||||||
|
theme "catppuccin-macchiato"
|
||||||
|
|
||||||
|
// Choose the base input mode of zellij.
|
||||||
|
// Default: normal
|
||||||
|
//
|
||||||
|
default_mode "locked"
|
||||||
|
|
||||||
// Choose the path to the default shell that zellij will use for opening new panes
|
// Choose the path to the default shell that zellij will use for opening new panes
|
||||||
// Default: $SHELL
|
// Default: $SHELL
|
||||||
//
|
//
|
||||||
// default_shell "fish"
|
// default_shell "fish"
|
||||||
|
|
||||||
// Toggle between having pane frames around the panes
|
// Choose the path to override cwd that zellij will use for opening new panes
|
||||||
// Options:
|
|
||||||
// - true (default)
|
|
||||||
// - false
|
|
||||||
//
|
//
|
||||||
pane_frames false
|
// default_cwd "/tmp"
|
||||||
|
|
||||||
// Toggle between having Zellij lay out panes according to a predefined set of layouts whenever possible
|
|
||||||
// Options:
|
|
||||||
// - true (default)
|
|
||||||
// - false
|
|
||||||
//
|
|
||||||
// auto_layout true
|
|
||||||
|
|
||||||
// Choose the theme that is specified in the themes section.
|
|
||||||
// Default: default
|
|
||||||
//
|
|
||||||
theme "tokyo-night-storm"
|
|
||||||
|
|
||||||
// The name of the default layout to load on startup
|
// The name of the default layout to load on startup
|
||||||
// Default: "default"
|
// Default: "default"
|
||||||
//
|
//
|
||||||
// default_layout "compact"
|
// default_layout "compact"
|
||||||
|
|
||||||
// Choose the mode that zellij uses when starting up.
|
// The folder in which Zellij will look for layouts
|
||||||
// Default: normal
|
// (Requires restart)
|
||||||
//
|
//
|
||||||
// default_mode "locked"
|
// layout_dir "/tmp"
|
||||||
|
|
||||||
|
// The folder in which Zellij will look for themes
|
||||||
|
// (Requires restart)
|
||||||
|
//
|
||||||
|
// theme_dir "/tmp"
|
||||||
|
|
||||||
|
// Toggle enabling the mouse mode.
|
||||||
|
// On certain configurations, or terminals this could
|
||||||
|
// potentially interfere with copying text.
|
||||||
|
// Options:
|
||||||
|
// - true (default)
|
||||||
|
// - false
|
||||||
|
//
|
||||||
|
// mouse_mode false
|
||||||
|
|
||||||
|
// Toggle having pane frames around the panes
|
||||||
|
// Options:
|
||||||
|
// - true (default, enabled)
|
||||||
|
// - false
|
||||||
|
//
|
||||||
|
// pane_frames false
|
||||||
|
|
||||||
|
// When attaching to an existing session with other users,
|
||||||
|
// should the session be mirrored (true)
|
||||||
|
// or should each user have their own cursor (false)
|
||||||
|
// (Requires restart)
|
||||||
|
// Default: false
|
||||||
|
//
|
||||||
|
// mirror_session true
|
||||||
|
|
||||||
|
// Choose what to do when zellij receives SIGTERM, SIGINT, SIGQUIT or SIGHUP
|
||||||
|
// eg. when terminal window with an active zellij session is closed
|
||||||
|
// (Requires restart)
|
||||||
|
// Options:
|
||||||
|
// - detach (Default)
|
||||||
|
// - quit
|
||||||
|
//
|
||||||
|
// on_force_close "quit"
|
||||||
|
|
||||||
|
// Configure the scroll back buffer size
|
||||||
|
// This is the number of lines zellij stores for each pane in the scroll back
|
||||||
|
// buffer. Excess number of lines are discarded in a FIFO fashion.
|
||||||
|
// (Requires restart)
|
||||||
|
// Valid values: positive integers
|
||||||
|
// Default value: 10000
|
||||||
|
//
|
||||||
|
// scroll_buffer_size 10000
|
||||||
|
|
||||||
// Provide a command to execute when copying text. The text will be piped to
|
// Provide a command to execute when copying text. The text will be piped to
|
||||||
// the stdin of the program to perform the copy. This can be used with
|
// the stdin of the program to perform the copy. This can be used with
|
||||||
|
|
@ -238,6 +364,8 @@ theme "tokyo-night-storm"
|
||||||
// copy_command "xclip -selection clipboard" // x11
|
// copy_command "xclip -selection clipboard" // x11
|
||||||
// copy_command "wl-copy" // wayland
|
// copy_command "wl-copy" // wayland
|
||||||
// copy_command "pbcopy" // osx
|
// copy_command "pbcopy" // osx
|
||||||
|
//
|
||||||
|
// copy_command "pbcopy"
|
||||||
|
|
||||||
// Choose the destination for copied text
|
// Choose the destination for copied text
|
||||||
// Allows using the primary selection buffer (on x11/wayland) instead of the system clipboard.
|
// Allows using the primary selection buffer (on x11/wayland) instead of the system clipboard.
|
||||||
|
|
@ -248,27 +376,90 @@ theme "tokyo-night-storm"
|
||||||
//
|
//
|
||||||
// copy_clipboard "primary"
|
// copy_clipboard "primary"
|
||||||
|
|
||||||
// Enable or disable automatic copy (and clear) of selection when releasing mouse
|
// Enable automatic copying (and clearing) of selection when releasing mouse
|
||||||
// Default: true
|
// Default: true
|
||||||
//
|
//
|
||||||
// copy_on_select false
|
// copy_on_select true
|
||||||
|
|
||||||
// Path to the default editor to use to edit pane scrollbuffer
|
// Path to the default editor to use to edit pane scrollbuffer
|
||||||
// Default: $EDITOR or $VISUAL
|
// Default: $EDITOR or $VISUAL
|
||||||
//
|
|
||||||
// scrollback_editor "/usr/bin/vim"
|
// scrollback_editor "/usr/bin/vim"
|
||||||
|
|
||||||
// When attaching to an existing session with other users,
|
// A fixed name to always give the Zellij session.
|
||||||
// should the session be mirrored (true)
|
// Consider also setting `attach_to_session true,`
|
||||||
// or should each user have their own cursor (false)
|
// otherwise this will error if such a session exists.
|
||||||
|
// Default: <RANDOM>
|
||||||
|
//
|
||||||
|
// session_name "My singleton session"
|
||||||
|
|
||||||
|
// When `session_name` is provided, attaches to that session
|
||||||
|
// if it is already running or creates it otherwise.
|
||||||
// Default: false
|
// Default: false
|
||||||
//
|
//
|
||||||
// mirror_session true
|
attach_to_session true
|
||||||
|
|
||||||
// The folder in which Zellij will look for layouts
|
// Toggle between having Zellij lay out panes according to a predefined set of layouts whenever possible
|
||||||
|
// Options:
|
||||||
|
// - true (default)
|
||||||
|
// - false
|
||||||
//
|
//
|
||||||
// layout_dir "/path/to/my/layout_dir"
|
// auto_layout false
|
||||||
|
|
||||||
// The folder in which Zellij will look for themes
|
// Whether sessions should be serialized to the cache folder (including their tabs/panes, cwds and running commands) so that they can later be resurrected
|
||||||
|
// Options:
|
||||||
|
// - true (default)
|
||||||
|
// - false
|
||||||
//
|
//
|
||||||
// theme_dir "/path/to/my/theme_dir"
|
// session_serialization false
|
||||||
|
|
||||||
|
// Whether pane viewports are serialized along with the session, default is false
|
||||||
|
// Options:
|
||||||
|
// - true
|
||||||
|
// - false (default)
|
||||||
|
//
|
||||||
|
// serialize_pane_viewport false
|
||||||
|
|
||||||
|
// Scrollback lines to serialize along with the pane viewport when serializing sessions, 0
|
||||||
|
// defaults to the scrollback size. If this number is higher than the scrollback size, it will
|
||||||
|
// also default to the scrollback size. This does nothing if `serialize_pane_viewport` is not true.
|
||||||
|
//
|
||||||
|
// scrollback_lines_to_serialize 10000
|
||||||
|
|
||||||
|
// Enable or disable the rendering of styled and colored underlines (undercurl).
|
||||||
|
// May need to be disabled for certain unsupported terminals
|
||||||
|
// (Requires restart)
|
||||||
|
// Default: true
|
||||||
|
//
|
||||||
|
// styled_underlines false
|
||||||
|
|
||||||
|
// How often in seconds sessions are serialized
|
||||||
|
//
|
||||||
|
// serialization_interval 10000
|
||||||
|
|
||||||
|
// Enable or disable writing of session metadata to disk (if disabled, other sessions might not know
|
||||||
|
// metadata info on this session)
|
||||||
|
// (Requires restart)
|
||||||
|
// Default: false
|
||||||
|
//
|
||||||
|
// disable_session_metadata false
|
||||||
|
|
||||||
|
// Enable or disable support for the enhanced Kitty Keyboard Protocol (the host terminal must also support it)
|
||||||
|
// (Requires restart)
|
||||||
|
// Default: true (if the host terminal supports it)
|
||||||
|
//
|
||||||
|
// support_kitty_keyboard_protocol false
|
||||||
|
|
||||||
|
// Whether to stack panes when resizing beyond a certain size
|
||||||
|
// Default: true
|
||||||
|
//
|
||||||
|
// stacked_resize false
|
||||||
|
|
||||||
|
// Whether to show tips on startup
|
||||||
|
// Default: true
|
||||||
|
//
|
||||||
|
show_startup_tips false
|
||||||
|
|
||||||
|
// Whether to show release notes on first version run
|
||||||
|
// Default: true
|
||||||
|
//
|
||||||
|
// show_release_notes false
|
||||||
|
|
|
||||||
21
config/zellij/layouts/code.kdl
Normal file
21
config/zellij/layouts/code.kdl
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
layout {
|
||||||
|
tab name="Code" focus=true hide_floating_panes=true {
|
||||||
|
pane size=1 borderless=true {
|
||||||
|
plugin location="zellij:tab-bar"
|
||||||
|
}
|
||||||
|
pane split_direction="vertical" {
|
||||||
|
pane edit="src/main.rs" size="60%" focus=true
|
||||||
|
pane size="40%" {
|
||||||
|
pane command="just" {
|
||||||
|
args "dev"
|
||||||
|
start_suspended true
|
||||||
|
}
|
||||||
|
pane size="50%"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
pane size=1 borderless=true {
|
||||||
|
plugin location="zellij:status-bar"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -1,54 +0,0 @@
|
||||||
themes {
|
|
||||||
catppuccin-frappe {
|
|
||||||
fg 198 208 245
|
|
||||||
bg 98 104 128
|
|
||||||
black 41 44 60
|
|
||||||
red 231 130 132
|
|
||||||
green 166 209 137
|
|
||||||
yellow 229 200 144
|
|
||||||
blue 140 170 238
|
|
||||||
magenta 244 184 228
|
|
||||||
cyan 153 209 219
|
|
||||||
white 198 208 245
|
|
||||||
orange 239 159 118
|
|
||||||
}
|
|
||||||
catppuccin-latte {
|
|
||||||
fg 172 176 190
|
|
||||||
bg 172 176 190
|
|
||||||
black 76 79 105
|
|
||||||
red 210 15 57
|
|
||||||
green 64 160 43
|
|
||||||
yellow 223 142 29
|
|
||||||
blue 30 102 245
|
|
||||||
magenta 234 118 203
|
|
||||||
cyan 4 165 229
|
|
||||||
white 220 224 232
|
|
||||||
orange 254 100 11
|
|
||||||
}
|
|
||||||
catppuccin-macchiato {
|
|
||||||
fg 202 211 245
|
|
||||||
bg 91 96 120
|
|
||||||
black 30 32 48
|
|
||||||
red 237 135 150
|
|
||||||
green 166 218 149
|
|
||||||
yellow 238 212 159
|
|
||||||
blue 138 173 244
|
|
||||||
magenta 245 189 230
|
|
||||||
cyan 145 215 227
|
|
||||||
white 202 211 245
|
|
||||||
orange 245 169 127
|
|
||||||
}
|
|
||||||
catppuccin-mocha {
|
|
||||||
fg 205 214 244
|
|
||||||
bg 88 91 112
|
|
||||||
black 24 24 37
|
|
||||||
red 243 139 168
|
|
||||||
green 166 227 161
|
|
||||||
yellow 249 226 175
|
|
||||||
blue 137 180 250
|
|
||||||
magenta 245 194 231
|
|
||||||
cyan 137 220 235
|
|
||||||
white 205 214 244
|
|
||||||
orange 250 179 135
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue