From 03c6e4def0a4b6b345cefd942aceff61fc0c1c4f Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Thu, 22 Jan 2026 13:29:35 +0100 Subject: [PATCH] feat: add show_bottom_bar_grip config option --- src/config.zig | 1 + src/tui/mainview.zig | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config.zig b/src/config.zig index d26485d..c013ea1 100644 --- a/src/config.zig +++ b/src/config.zig @@ -45,6 +45,7 @@ indent_mode: IndentMode = .auto, top_bar: []const u8 = "tabs", bottom_bar: []const u8 = "mode file log selection diagnostics keybind branch linenumber clock spacer", +show_bottom_bar_grip: bool = true, show_scrollbars: bool = true, show_fileicons: bool = true, show_local_diagnostics_in_panel: bool = false, diff --git a/src/tui/mainview.zig b/src/tui/mainview.zig index 732c96c..01695a8 100644 --- a/src/tui/mainview.zig +++ b/src/tui/mainview.zig @@ -110,7 +110,8 @@ pub fn create(allocator: std.mem.Allocator) CreateError!Widget { try widgets.add(self.panes_widget); if (tui.config().bottom_bar.len > 0) { - self.bottom_bar = (try widgets.addP(try @import("status/bar.zig").create(allocator, self.plane, tui.config().bottom_bar, .grip, EventHandler.bind(self, handle_bottom_bar_event)))).*; + const bar_style: @import("status/bar.zig").Style = if (tui.config().show_bottom_bar_grip) .grip else .none; + self.bottom_bar = (try widgets.addP(try @import("status/bar.zig").create(allocator, self.plane, tui.config().bottom_bar, bar_style, EventHandler.bind(self, handle_bottom_bar_event)))).*; } if (tp.env.get().is("show-input")) { self.toggle_inputview_async();