const std = @import("std"); const model = @import("model.zig"); const scan = @import("scan.zig"); var general_purpose_allocator = std.heap.GeneralPurposeAllocator(.{}){}; pub const allocator = &general_purpose_allocator.allocator; pub const Config = struct { same_fs: bool = true, extended: bool = false, exclude_caches: bool = false, follow_symlinks: bool = false, exclude_kernfs: bool = false, // TODO: exclude patterns update_delay: u32 = 100, si: bool = false, // TODO: color scheme read_only: bool = false, can_shell: bool = true, confirm_quit: bool = false, }; pub var config = Config{}; // For debugging fn writeTree(out: anytype, e: *model.Entry, indent: u32) @TypeOf(out).Error!void { var i: u32 = 0; while (i