blob: d87771a32946074aa05463439d8073619ee740b3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
// Gruvbox dark theme (built-in)
theme "gruvbox-dark"
// Session resurrection
serialize_pane_viewport true
// Scrollback
scroll_buffer_size 50000
// Clipboard: copy to system clipboard on selection (OSC 52)
copy_on_select true
// Auto-attach to existing session with the same name instead of erroring
attach_to_session true
// Disable startup popups that overwrite stow-managed config when dismissed
show_startup_tips false
show_release_notes false
// Clean UI: no pane borders
pane_frames false
// Custom keybindings (merged with defaults)
keybinds {
shared_except "locked" {
// Free up Ctrl+* keys so they pass through to zsh / nvim.
// Mode-entry relocated to Alt+Shift+* below. Ctrl+h/j/k/l are kept
// by the vim-zellij-navigator binds further down.
unbind "Ctrl b" "Ctrl g" "Ctrl n" "Ctrl o" "Ctrl p" "Ctrl q" "Ctrl s" "Ctrl t"
// Mode entry (Alt+Shift+<first-letter-of-mode>)
bind "Alt Shift P" { SwitchToMode "Pane"; }
bind "Alt Shift T" { SwitchToMode "Tab"; }
bind "Alt Shift R" { SwitchToMode "Resize"; }
bind "Alt Shift S" { SwitchToMode "Scroll"; }
bind "Alt Shift O" { SwitchToMode "Session"; }
bind "Alt Shift Z" { SwitchToMode "Locked"; }
bind "Alt Shift Q" { Quit; }
// Direct tab access (Alt+number)
bind "Alt 1" { GoToTab 1; }
bind "Alt 2" { GoToTab 2; }
bind "Alt 3" { GoToTab 3; }
bind "Alt 4" { GoToTab 4; }
bind "Alt 5" { GoToTab 5; }
bind "Alt 6" { GoToTab 6; }
bind "Alt 7" { GoToTab 7; }
bind "Alt 8" { GoToTab 8; }
bind "Alt 9" { GoToTab 9; }
// Tab management
bind "Alt t" { NewTab; }
bind "Alt [" { GoToPreviousTab; }
bind "Alt ]" { GoToNextTab; }
// Cycle swap layouts (tiled/stacked variants) — nearest thing to
// "reset pane sizes", since zellij has no equalize action.
bind "Alt \\" { NextSwapLayout; }
// Pane management
bind "Alt w" { ToggleFocusFullscreen; }
bind "Alt x" { CloseFocus; }
bind "Alt e" { EditScrollback; }
// Explicit splits (tmux-style mnemonics: | vertical, _ horizontal).
// Bypasses NewPane's aspect-ratio auto-direction which misfires on
// widescreens with pane_frames disabled.
bind "Alt |" { NewPane "Right"; }
bind "Alt _" { NewPane "Down"; }
// Session
bind "Alt q" { Detach; }
// Quick resize without entering resize mode
bind "Alt -" { Resize "Decrease"; }
bind "Alt =" { Resize "Increase"; }
// Seamless vim/zellij pane navigation (requires smart-splits.nvim)
bind "Ctrl h" {
MessagePlugin "https://github.com/hiasr/vim-zellij-navigator/releases/download/0.3.0/vim-zellij-navigator.wasm" {
name "move_focus"
payload "left"
}
}
bind "Ctrl j" {
MessagePlugin "https://github.com/hiasr/vim-zellij-navigator/releases/download/0.3.0/vim-zellij-navigator.wasm" {
name "move_focus"
payload "down"
}
}
bind "Ctrl k" {
MessagePlugin "https://github.com/hiasr/vim-zellij-navigator/releases/download/0.3.0/vim-zellij-navigator.wasm" {
name "move_focus"
payload "up"
}
}
bind "Ctrl l" {
MessagePlugin "https://github.com/hiasr/vim-zellij-navigator/releases/download/0.3.0/vim-zellij-navigator.wasm" {
name "move_focus"
payload "right"
}
}
}
}
|