From f436ca5a86f01aa7600b54d8cc39746fb6ac86cb Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Thu, 30 Apr 2026 15:25:00 -0700 Subject: [PATCH] remove when column it was marginal benefit before, and now fmp does not even have the data, so not worth showing --- src/commands/earnings.zig | 9 ++++----- src/tui/earnings_tab.zig | 6 +++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/commands/earnings.zig b/src/commands/earnings.zig index 4901fc8..81970b1 100644 --- a/src/commands/earnings.zig +++ b/src/commands/earnings.zig @@ -47,11 +47,11 @@ pub fn display(events: []const zfin.EarningsEvent, symbol: []const u8, color: bo } try cli.setFg(out, color, cli.CLR_MUTED); - try out.print("{s:>12} {s:>4} {s:>12} {s:>12} {s:>12} {s:>10} {s:>5}\n", .{ - "Date", "Q", "EPS Est", "EPS Act", "Surprise", "Surprise %", "When", + try out.print("{s:>12} {s:>4} {s:>12} {s:>12} {s:>12} {s:>10}\n", .{ + "Date", "Q", "EPS Est", "EPS Act", "Surprise", "Surprise %", }); - try out.print("{s:->12} {s:->4} {s:->12} {s:->12} {s:->12} {s:->10} {s:->5}\n", .{ - "", "", "", "", "", "", "", + try out.print("{s:->12} {s:->4} {s:->12} {s:->12} {s:->12} {s:->10}\n", .{ + "", "", "", "", "", "", }); try cli.reset(out, color); @@ -68,7 +68,6 @@ pub fn display(events: []const zfin.EarningsEvent, symbol: []const u8, color: bo } try out.print("{s}", .{row.text}); - try out.print(" {s:>5}", .{@tagName(e.report_time)}); try cli.reset(out, color); try out.print("\n", .{}); } diff --git a/src/tui/earnings_tab.zig b/src/tui/earnings_tab.zig index 3dd67d8..837b9ce 100644 --- a/src/tui/earnings_tab.zig +++ b/src/tui/earnings_tab.zig @@ -104,15 +104,15 @@ pub fn renderEarningsLines( return lines.toOwnedSlice(arena); } - try lines.append(arena, .{ .text = try std.fmt.allocPrint(arena, " {s:>12} {s:>4} {s:>12} {s:>12} {s:>12} {s:>10} {s:>5}", .{ - "Date", "Q", "EPS Est", "EPS Act", "Surprise", "Surprise %", "When", + try lines.append(arena, .{ .text = try std.fmt.allocPrint(arena, " {s:>12} {s:>4} {s:>12} {s:>12} {s:>12} {s:>10}", .{ + "Date", "Q", "EPS Est", "EPS Act", "Surprise", "Surprise %", }), .style = th.mutedStyle() }); for (ev) |e| { var row_buf: [128]u8 = undefined; const row = fmt.fmtEarningsRow(&row_buf, e); - const text = try std.fmt.allocPrint(arena, " {s} {s:>5}", .{ row.text, @tagName(e.report_time) }); + const text = try std.fmt.allocPrint(arena, " {s}", .{row.text}); const row_style = if (row.is_future) th.mutedStyle() else if (row.is_positive) th.positiveStyle() else th.negativeStyle(); try lines.append(arena, .{ .text = text, .style = row_style });