this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

vxfw(RichText): enable hyperlinks

+3 -4
+3 -4
src/vxfw/RichText.zig
··· 7 7 8 8 const RichText = @This(); 9 9 10 - pub const TextSpan = struct { 11 - text: []const u8, 12 - style: vaxis.Style = .{}, 13 - }; 10 + pub const TextSpan = vaxis.Segment; 14 11 15 12 text: []const TextSpan, 16 13 text_align: enum { left, center, right } = .left, ··· 174 171 const cell: vaxis.Cell = .{ 175 172 .char = .{ .grapheme = " ", .width = 1 }, 176 173 .style = span.style, 174 + .link = span.link, 177 175 }; 178 176 for (0..8) |_| { 179 177 try list.append(cell); ··· 184 182 const cell: vaxis.Cell = .{ 185 183 .char = .{ .grapheme = char, .width = @intCast(width) }, 186 184 .style = span.style, 185 + .link = span.link, 187 186 }; 188 187 try list.append(cell); 189 188 }