summaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-15 14:46:38 -0300
committerGabriel Schneider <[email protected]>2026-09-15 17:24:42 -0300
commit40c19fd4f52d20df94c2dfa2d68102b89bd9d3f1 (patch)
tree642150be8703f1d9a0766ff18516f06bfdc8801a /src/config.zig
parent379f4fe55c7c9c7c8cc7b97dc921c83e2c24698b (diff)
downloadpardes-40c19fd4f52d20df94c2dfa2d68102b89bd9d3f1.tar.gz
pardes-40c19fd4f52d20df94c2dfa2d68102b89bd9d3f1.zip
Add optional compact tagline styling for source context
Diffstat (limited to 'src/config.zig')
-rw-r--r--src/config.zig8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/config.zig b/src/config.zig
index 321e0caf..7f0a7715 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -70,6 +70,7 @@ pub const leader_path = paths: {
.FocusTint = null,
.ColumnTags = null,
.SyntaxBold = null,
+ .TreeContextTagStyle = null,
.Wrap = "tw",
.Tagbottom = "tb",
.NextColor = "tn",
@@ -532,6 +533,7 @@ pub const Runtime = struct {
colors: bool = true,
wrap: bool = true,
tag_bottom: bool = false,
+ tree_context_tag_style: bool = true,
debug: bool = false,
focus_tint: bool = true,
column_tags: bool = true,
@@ -631,7 +633,7 @@ pub const Runtime = struct {
pub const Capability = std.meta.FieldEnum(Capabilities);
- pub const Toggle = enum { colors, wrap, tag_bottom, debug, focus_tint, column_tags, syntax_bold };
+ pub const Toggle = enum { colors, wrap, tree_context_tag_style, tag_bottom, debug, focus_tint, column_tags, syntax_bold };
pub const Scene = std.meta.FieldEnum(layout.SceneEffect);
pub const Action = union(enum) {
@@ -669,6 +671,7 @@ pub const Runtime = struct {
pub const settings = [_]Setting{
.{ .word = "Colors", .action = .{ .toggle = .colors } },
.{ .word = "Wrap", .action = .{ .toggle = .wrap } },
+ .{ .word = "TreeContextTagStyle", .action = .{ .toggle = .tree_context_tag_style } },
.{ .word = "Tagbottom", .action = .{ .toggle = .tag_bottom } },
.{ .word = "Debug", .action = .{ .toggle = .debug } },
.{ .word = "FocusTint", .action = .{ .toggle = .focus_tint } },
@@ -753,6 +756,7 @@ pub const Runtime = struct {
.toggle => |field| switch (field) {
.colors => state.colors = !state.colors,
.wrap => state.wrap = !state.wrap,
+ .tree_context_tag_style => state.tree_context_tag_style = !state.tree_context_tag_style,
.tag_bottom => state.tag_bottom = !state.tag_bottom,
.debug => state.debug = !state.debug,
.focus_tint => state.focus_tint = !state.focus_tint,
@@ -824,6 +828,7 @@ pub const Runtime = struct {
const value = switch (field) {
.colors => state.colors,
.wrap => state.wrap,
+ .tree_context_tag_style => state.tree_context_tag_style,
.tag_bottom => state.tag_bottom,
.debug => state.debug,
.focus_tint => state.focus_tint,
@@ -1070,6 +1075,7 @@ pub const Runtime = struct {
.toggle => |field| switch (field) {
.colors => "Colors: off\n",
.wrap => "Wrap: off\n",
+ .tree_context_tag_style => "TreeContextTagStyle: off\n",
.tag_bottom => "Tagbottom: on\n",
.debug => "Debug: on\n",
.focus_tint => "FocusTint: off\n",