A Zellij plugin for quickly searching and switching between tabs.
Copy of the original harpoon for nvim.
a
to add pane to listA
to add all current panes to listUp
andDown
orj
andk
to cycle through pane listd
to remove pane from listEnter
orl
to switch to the selected paneEsc
orCtrl + c
to exit
In a sentence: Quickly access your most used panes.
- Manually manage list of favorite panes
- Easily add/remove from this list
- Use list to quickly go to pane
- Panes are automatically removed from your list when they are closed
- When tabs or panes change name, these changes propagate to your harpoon list
Requires Zellij 0.38.0
or newer.
Note: you will need to have wasm32-wasi
added to rust as a target to build the plugin. This can be done with rustup target add wasm32-wasi
.
git clone [email protected]:Nacho114/harpoon.git
cd harpoon
cargo build --release
mkdir -p ~/.config/zellij/plugins/
mv target/wasm32-wasi/release/harpoon.wasm ~/.config/zellij/plugins/
Add the following to your zellij config somewhere inside the keybinds section:
shared_except "locked" {
bind "Ctrl y" {
LaunchOrFocusPlugin "file:~/.config/zellij/plugins/harpoon.wasm" {
floating true; move_to_focused_tab true;
}
}
}
You likely already have a
shared_except "locked"
section in your configs. Feel free to addbind
there.
If you find any issues or want to suggest ideas please open an issue.
Make sure you have rust installed then run:
zellij action new-tab --layout ./plugin-dev-workspace.kdl