diff --git a/src/print.zig b/src/print.zig index cb0eb16..55d1a11 100644 --- a/src/print.zig +++ b/src/print.zig @@ -1,6 +1,6 @@ -//TODO: re-implement sorting +//TODO: program is adding way more spacing than necessary at the bottom of pages, suspect the c lib +// is computing size strangely //c library usage based on https://medium.com/@eddo2626/lets-learn-zig-4-using-c-libraries-in-zig-5fcc3206f0dc -// const std = @import("std"); const clap = @import("clap"); const DisplayWidth = @import("DisplayWidth"); @@ -30,6 +30,7 @@ const Card = struct { const TextCard = struct { lines: [][]const u8 = undefined, }; + const CardSortContext = struct { const Self = @This(); list: []TextCard,