With Zellij Panes Picker, you can quickly switch, star, and jump to panes using customizable keyboard shortcuts.
Put the following in your
Zellij configuration
config.kdl
.
keybinds clear-defaults=true {
...
shared_except "locked" {
...
bind "Alt y" {
LaunchOrFocusPlugin "zellij-pane-picker" {
floating true; move_to_focused_tab true;
}
}
...
}
...
}
load_plugins {
zellij-pane-picker
}
plugins {
...
zellij-pane-picker location="https://github.com/shihanng/zellij-pane-picker/releases/download/v0.6.0/zellij-pane-picker.wasm" {
list_panes ""
plugin_select_down "Ctrl n"
plugin_select_up "Ctrl p"
}
...
}
In the picker pane, we can
- Select and navigate to a pane
- Filter panes in the list
- Star/unstar a pane
Use Alt i/u
to cycle between starred panes.
Use Alt o
to toggle between two panes.
Keybinding | Description | Config Key |
---|---|---|
Alt y | Open plugin pane and lists all available panes | list_panes |
Alt o | Toggle between two panes | navigate_back |
Alt l | Star/unstar the focused pane | toggle_star |
Alt i | Navigate to next starred pane | next_star |
Alt u | Navigate to previous starred pane | previous_star |
Keybinding | Description | Config Key |
---|---|---|
Up/Down | Move the selection in the list of panes | plugin_select_up /plugin_select_down |
Enter | Navigate to the selected pane | plugin_navigate_to |
Esc | Close the plugin without navigating to a pane | plugin_hide |
Space | Toggle star/unstar the selected pane | plugin_toggle_star |
Use the config key in the plugin configuration to customize the keybindings, e.g., the following allows us to use Alt x to open the plugin pane and use Ctrl p/n to move the selection in the list of panes.
load_plugins {
"https://github.com/shihanng/zellij-pane-picker/releases/download/v0.6.0/zellij-pane-picker.wasm" {
list_panes "Alt x"
plugin_select_down "Ctrl n"
plugin_select_up "Ctrl p"
}
}
Use empty string to disable a keybinding.
load_plugins {
"https://github.com/shihanng/zellij-pane-picker/releases/download/v0.6.0/zellij-pane-picker.wasm" {
list_panes ""
}
}
- Install pre-commit hooks with
pre-commit install
. - I use just (command runner) to execute linters
and run tests but it is optional. See
justfile
for what they actually do.- Run linters with
just lint
. - Run tests with
just test
.
- Run linters with
Use act
to run GitHub Actions locally.
GitHub token in order to avoid hitting the rate limit when installing the toolings.
export GITHUB_TOKEN=$(gh auth token)
just run-ci-local