mirror of
https://github.com/zellij-org/zellij.git
synced 2026-10-12 02:27:24 +00:00
* ui components * right click menu + popups * settings screen * various fixes * presets in config * zellij prompt - ui elements in the cli * context menu shortcuts and toggle, keybindings in popups, info popups + zellij prompt notify * smart config writing and some leftovers * keybindings/right-click/config editors * some wrapups * feat(plugins): add prompt() plugin API for zellij:prompt, dialog forms, and Text labels in widgets * theme editors * upstream by-id action types, config env for new panes only, smaller saved menu config, web right-click, example config * upstreamify * rustfmt * fix windows and theme editor layout * add pr
About
This is an example Zellij plugin in Rust. It can be used as a template to start developing your own plugins.
More about Zellij plugins: Zellij Documentation
Development
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.
With the Provided Layout
Run zellij -l zellij.kdl at the root of this repository. This will open a development environment that will help you develop the plugin inside Zellij.
It can also be used if you prefer developing outside of the terminal - in this case you should ignore the $EDITOR pane and use your IDE instead.
Otherwise
- Build the project:
cargo build - Load it inside a running Zellij session:
zellij action start-or-reload-plugin file:target/wasm32-wasip1/debug/rust-plugin-example.wasm - Repeat on changes (perhaps with a
watchexecor similar command to run on fs changes).