diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-04 23:23:26 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-04 23:35:18 -0300 |
| commit | 51cbe3504a6ab595712f8617134e3f9aa2b2961a (patch) | |
| tree | 794ead1ac9630d34dbc7fe68dffa3df290fa7057 /src | |
| parent | 0495379f3cd3130f6a407f81a68b3f6e1947cf16 (diff) | |
| download | pardes-51cbe3504a6ab595712f8617134e3f9aa2b2961a.tar.gz pardes-51cbe3504a6ab595712f8617134e3f9aa2b2961a.zip | |
config: writeReport prints the seven numbers whose field is named as their action from one inline prong; the table of ranges apply and takes would share came out no shorter than the two spellings, so they stay
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src')
| -rw-r--r-- | src/config.zig | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/config.zig b/src/config.zig index a3cf659c..f1da742a 100644 --- a/src/config.zig +++ b/src/config.zig @@ -1487,8 +1487,8 @@ pub const Runtime = struct { try out.print("ThemeFile {s}\n", .{path}) else try out.print("{s} {s}\n", .{ setting.word, context.theme_name }), - .window_opacity => try out.print("{s} {d}\n", .{ setting.word, state.window_opacity }), - .window_blur => try out.print("{s} {d}\n", .{ setting.word, state.window_blur }), + // A number in a field named as its action. + inline .window_opacity, .window_blur, .inactive_dim, .callstack_depth, .tab, .search_rows, .grip_width => |_, tag| try out.print("{s} {d}\n", .{ setting.word, @field(state, @tagName(tag)) }), .dump_dir => { const dir = if (state.dump_dir.len > 0) state.dump_dir.get() else context.default_dump_dir; if (dir.len > 0) try out.print("{s} {s}\n", .{ setting.word, dir }) else try out.print("# {s} (none)\n", .{setting.word}); @@ -1536,11 +1536,6 @@ pub const Runtime = struct { }, .lift => try out.print("{s} {s}\n", .{ setting.word, @tagName(state.lift) }), .motion => try out.print("{s} {s}\n", .{ setting.word, @tagName(state.motion) }), - .inactive_dim => try out.print("{s} {d}\n", .{ setting.word, state.inactive_dim }), - .callstack_depth => try out.print("{s} {d}\n", .{ setting.word, state.callstack_depth }), - .tab => try out.print("{s} {d}\n", .{ setting.word, state.tab }), - .search_rows => try out.print("{s} {d}\n", .{ setting.word, state.search_rows }), - .grip_width => try out.print("{s} {d}\n", .{ setting.word, state.grip_width }), }; if (context.locations.len > 0) try out.print("LocationsConfig {s}\n", .{context.locations}); |
