Zellij now supports Rust plugins
Zellij, a terminal workspace manager, has announced that its plugin system is now ready for Rust developers. The plugin system allows developers to build and share small terminal applets with each other. This new terminal ecosystem provides UI components for the terminal to automate workflows, add a visual element, and enable easy concurrency to pipelines. The Zellij maintainers have overhauled the plugin system over the past few months to provide a better experience for developers.
Rust developers are invited to join the Zellij community and build plugins for the terminal. The plugin system is built using WebAssembly, which allows for fast and efficient execution of Rust code in the terminal. Developers can express their creativity and imagination while building plugins for the terminal.
To get started, developers can visit the Zellij website and read more about the new plugin system. The website provides documentation on how to build and share plugins with the community. The Zellij community is active and supportive, making it an excellent place for developers to learn and grow.
Here is an example of a Rust plugin for Zellij that prints "Hello, world!" in the terminal:
use zellij_plugin::prelude::*;
#[derive(Default)]
struct HelloWorld;
impl ZellijPlugin for HelloWorld {
fn load(&mut self) -> anyhow::Result<()> {
println!("Hello, world!");
Ok(())
}
}
inventory::submit!(PluginDescription {
name: "HelloWorld",
author: "Your Name",
description: "Prints 'Hello, world!' in the terminal",
version: "0.1.0",
license: "MIT",
features: Default::default(),
plugin_type: PluginType::Other(Box::new(|| Box::new(HelloWorld::default()))),
});
Zellij provides a unique opportunity for Rust developers to build plugins for the terminal and share them with the community. The new plugin system is easy to use and provides a great experience for developers. Join the Zellij community today and start building plugins for the terminal.