feat: add commands to execute shell tasks from keybindings

This is the first part of #67.
This commit is contained in:
CJ van den Berg 2025-01-07 22:42:52 +01:00
parent 337b6ce626
commit cfc99b61dc
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
5 changed files with 259 additions and 3 deletions

View file

@ -380,6 +380,15 @@ pub fn build_exe(
break :blk b.addRunArtifact(tests);
};
const shell_mod = b.createModule(.{
.root_source_file = b.path("src/shell.zig"),
.imports = &.{
.{ .name = "thespian", .module = thespian_mod },
.{ .name = "cbor", .module = cbor_mod },
.{ .name = "log", .module = log_mod },
},
});
const ripgrep_mod = b.createModule(.{
.root_source_file = b.path("src/ripgrep.zig"),
.imports = &.{
@ -444,6 +453,7 @@ pub fn build_exe(
.{ .name = "text_manip", .module = text_manip_mod },
.{ .name = "Buffer", .module = Buffer_mod },
.{ .name = "keybind", .module = keybind_mod },
.{ .name = "shell", .module = shell_mod },
.{ .name = "ripgrep", .module = ripgrep_mod },
.{ .name = "theme", .module = themes_dep.module("theme") },
.{ .name = "themes", .module = themes_dep.module("themes") },