summaryrefslogtreecommitdiff
path: root/src/builtins.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/builtins.zig')
-rw-r--r--src/builtins.zig10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/builtins.zig b/src/builtins.zig
index 92df2645..659e7cd5 100644
--- a/src/builtins.zig
+++ b/src/builtins.zig
@@ -989,6 +989,16 @@ pub const PdfSections = struct {
}
};
+/// Addons, the libraries that bring kinds of pane: `Addon load <path>`,
+/// `Addon unload <name>`, `Addon reload <name>`; bare, the kinds here.
+pub const Addon = struct {
+ pub const scope: Scope = .session;
+ pub const takes_arg = true;
+ pub fn run(c: Ctx) void {
+ pardes.Kind.addonWord(c.p, c.id, c.arg);
+ }
+};
+
/// glyph art over the host's pixels: an image pane's picture, or the
/// kitty graphics a terminal's program placed (yazi's previews)
pub const Petscii = struct {