A Zellij plugin for quickly searching and switching between tabs.
Copy of the original harpoon for nvim.
ato add pane to listAto add all current panes to listUpandDownorjandkto cycle through pane listdto remove pane from listEnterorlto switch to the selected paneEscorCtrl + cto 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-wasip1 added to rust as a target to build the plugin. This can be done with rustup target add wasm32-wasip1.
git clone git@github.com:Nacho114/harpoon.git
cd harpoon
cargo build --release
mkdir -p ~/.config/zellij/plugins/
mv target/wasm32-wasip1/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 addbindthere.
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