A plugin for Zellij to run commonly used commands, such as to launch TUI apps. Heavy inspiration from zellij-forgot and harpoon
Simply grab the latest .wasm file from the releases page, place it in the zellij plugins folder, and update your config.kdl.
gh repo clone leo030303/zellij_spotlight
cd zellij_spotlight
cargo build --release
mv target/wasm32-wasi/release/zellij_spotlight.wasm ~/.config/zellij/plugins/
Add the following to your config.kdl
shared_except "locked" {
bind "Home" {
LaunchOrFocusPlugin "file:~/.config/zellij/plugins/zellij_spotlight.wasm" {
"File Manager" "joshuto"
"Editor" "hx"
"Resource Manager" "btm"
"Git Manager" "gitui"
"Stack Overflow" "so"
"Wikipedia" "wiki-tui"
"Email Client" "meli"
"Web Browser" "elinks"
floating true
move_to_focused_tab true
}
}
bind "Ctrl f" { ToggleFocusFullscreen; } // optional but I find a shortcut to fullscreen the current pane to be useful
}
Add whichever commands you want to use, arguments can be included too in the same string as the command. You can change the keybinding too.
- Use Up and Down arrows to move through list
- Type any characters to filter output
- Press Enter to run the selected command
- Use Esc or Ctrl C to close the plugin
Feel free to open an issue if you find a bug or what to suggest an improvement.