diff options
Diffstat (limited to 'src/dump.zig')
| -rw-r--r-- | src/dump.zig | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/dump.zig b/src/dump.zig index 8200b0b7..7380c1ed 100644 --- a/src/dump.zig +++ b/src/dump.zig @@ -74,12 +74,25 @@ pub const Terminal = struct { cursor: Cursor = .{}, }; +pub const LocationRow = struct { + kind: enum { match, context }, + path: []const u8, + line: usize, + col: usize = 0, + end_line: usize = 0, + end_col: usize = 0, + location_end: usize, + code_start: usize, + colors_b64: []const u8 = "", +}; + pub const File = struct { path: []const u8 = "", content: []const u8 = "", content_b64: []const u8 = "", dirty: bool = false, tree_context: bool = false, + location_rows: []const LocationRow = &.{}, // Builtin names remain stable when enum ordinals change. origin: []const u8 = "", origin_arg: []const u8 = "", @@ -135,6 +148,7 @@ pub const State = struct { topbar: []const u8 = "", topbar_custom: ?[]const u8 = null, theme: []const u8 = "dark", + locations_config: @import("locations_config.zig").Config = .{}, columns: []const Column = &.{}, panes: []const Pane = &.{}, mounts: []const Mount = &.{}, |
