Zellij plugins in Zig!
LordMZTE 4bcc881651
fix: add now required -rdynamic compiler option to example
2022-12-31 21:02:32 +01:00
example fix: add now required -rdynamic compiler option to example 2022-12-31 21:02:32 +01:00
src feat: added error context and upgraded zellij API 2022-12-26 21:25:40 +01:00
.gitignore Initial Commit! 2022-06-11 23:52:21 +02:00
LICENSE chore: add GPL-3 license 2022-06-12 00:02:16 +02:00
README.md feat: change event system 2022-09-02 21:03:17 +02:00
build.zig docs: improve documentation 2022-08-23 18:25:20 +02:00
gyro.zzz deps: update getty and getty-json 2022-12-26 18:51:06 +01:00



A zig framework for writing zellij plugins.

Zellzig is currently used by these project (if you use this library, please submit a PR!):


For an example of how to use it, see the example directory. Also note that you'll need a master version of the zig compiler to use zellzig.

Here's a quick overview:

const std = @import("std");
const zz = @import("zellzig");

comptime {
    // register plugin

pub fn init() void {
    // do initialization stuff

pub fn update() void {
    var event = zz.getEvent(my_allocator) catch return;
    defer event.deinit();
    // handle events

pub fn render(rows: i32, cols: i32) void {
    // draw UI


PRs are always welcome if you feel that something needs improvement/fixing! Make sure to follow Conventional Commits and to run tests first, though.

Run tests using gyro build test. Note that tests are run on the native target, not WASM.

Documentation may be generated by running gyro build -Ddocs.