summaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-06 19:14:11 -0300
committerGabriel Schneider <[email protected]>2026-11-06 20:00:43 -0300
commitb22fa2638bca470bbd8c5ea4768eb0eaaa3e8195 (patch)
tree08d0cc564bfe03861313f0acbf14f91f8dc94cc7 /src/config.zig
parent2ddd5bcbe8d470c00b045af5822418fe429357bc (diff)
downloadpardes-b22fa2638bca470bbd8c5ea4768eb0eaaa3e8195.tar.gz
pardes-b22fa2638bca470bbd8c5ea4768eb0eaaa3e8195.zip
Build: a word that prints this build into a +Build pane (SPC h b): the version line, the commit, the jj change and the build time (stamped as the commit is: release builds and the ~/.local install, else "not stamped"), the zig that built it, its mode, target, platform and grammars, whether the addons are compiled in, the wire's semantics hash and the dependencies; build.zig stamps the change (jj log -r git_head()) and the time (date -u) through one command helper beside gitCommit; a T1 case reads the pane
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/config.zig')
-rw-r--r--src/config.zig6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/config.zig b/src/config.zig
index 98dd1ae3..a2aed287 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -109,6 +109,7 @@ pub const leader_path = paths: {
.LocationsConfig = null,
.Tutor = "ht",
.Changelog = "hc",
+ .Build = "hb",
.Messages = "hm",
.Newcol = "cn",
.Delcol = "cd",
@@ -496,6 +497,7 @@ pub const diff_buffer = "+Diff";
pub const hover_buffer = "+Hover";
pub const lsp_buffer = "+Lsp";
pub const changelog_buffer = "+Changelog";
+pub const build_buffer = "+Build";
pub const messages_buffer = "+Messages";
pub const scratch_buffer = "+New";
pub const errors_buffer = "+Errors";
@@ -1247,8 +1249,8 @@ pub const Runtime = struct {
const values = [_][2][]const u8{
.{ "TaglineSize", "73" }, .{ "WindowOpacity", "85" },
.{ "MessageLinger", "1500" }, .{ "DumpDir", "~/dumps" },
- .{ "GripWidth", "200" }, .{ "InactiveDim", "35" }, .{ "CallstackDepth", "16" },
- .{ "Tab", "8" },
+ .{ "GripWidth", "200" }, .{ "InactiveDim", "35" },
+ .{ "CallstackDepth", "16" }, .{ "Tab", "8" },
};
for (values) |v| try std.testing.expect(apply(&state, find(v[0]).?, v[1]));
try std.testing.expect(state.font.requested_name.set("Wanted Mono"));