diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-15 20:31:01 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-15 20:31:01 +0300 |
| commit | 4cbe72ec2d8a174e3c4f9bde2101aa189c7f38e7 (patch) | |
| tree | 2de696538e494d3c14a920c20877bcd6d4ac39dc /src/main.rs | |
| parent | 43d60fc6629d222ae63813ebcf4531067ba5bc9d (diff) | |
feat: add indexed keybind families
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index ecfb9f07..16c11406 100644 --- a/src/main.rs +++ b/src/main.rs @@ -75,9 +75,9 @@ const DEFAULT_CONFIG: &str = r##"# herdr configuration [keys] # Prefix key to enter navigate mode (default: "ctrl+b") # Examples: "ctrl+b", "f12", "esc", "-" -# Accepted syntax: plain keys, ctrl/shift/alt modifiers, and special keys like enter/tab/esc/left/right/up/down +# Accepted syntax: plain keys, ctrl/shift/alt/cmd/super modifiers, and special keys like enter/tab/esc/left/right/up/down # Most reliable bindings are plain keys, ctrl+letter, esc/tab/enter, and function keys. -# alt+... and punctuation-with-modifiers may depend on your terminal/tmux setup. +# alt+..., cmd/super, and punctuation-with-modifiers may depend on your terminal/tmux setup. # prefix = "ctrl+b" # Navigate-mode actions @@ -116,6 +116,13 @@ const DEFAULT_CONFIG: &str = r##"# herdr configuration # type = "pane" # command = "lazygit" +# Optional modifier-only shortcuts expanded over number keys 1-9. +# Empty means disabled. Examples: "ctrl", "ctrl+shift", "alt". +# [keys.indexed] +# tabs = "" # e.g. "ctrl" makes ctrl+1..9 switch tabs +# workspaces = "" # e.g. "ctrl+shift" makes ctrl+shift+1..9 switch workspaces +# agents = "" # e.g. "alt" makes alt+1..9 focus agent rows + [ui] # Sidebar width (auto-scaled based on workspace names, this sets the default) # sidebar_width = 26 |
