Zellij plugins in Zig!
Find a file
2022-06-12 00:02:16 +02:00
example Initial Commit! 2022-06-11 23:52:21 +02:00
src Initial Commit! 2022-06-11 23:52:21 +02:00
.gitignore Initial Commit! 2022-06-11 23:52:21 +02:00
build.zig Initial Commit! 2022-06-11 23:52:21 +02:00
gyro.zzz 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 Initial Commit! 2022-06-11 23:52:21 +02:00

zellzig

A zig framework for writing zellij plugins.

usage

For an example of how to use it, see the example directory.

Here's a quick overview:

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

comptime {
    // register plugin
    zz.createPlugin(@This());
}

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

pub fn update(ev: zz.Event) void {
    // handle events
}

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

development

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.