Compare commits

..

No commits in common. "master" and "v0.6.0" have entirely different histories.

4 changed files with 9 additions and 9 deletions

View file

@ -46,7 +46,7 @@ and is my daily driver for almost everything.
# Roadmap # Roadmap
See our [devlog](https://flow-control.dev/devlog/2025/) for on-going updates from the development team. See our [devlog](/devlog/2025) for on-going updates from the development team.
## In Development ## In Development

View file

@ -6,8 +6,8 @@
.dependencies = .{ .dependencies = .{
.syntax = .{ .syntax = .{
.url = "git+https://github.com/neurocyte/flow-syntax?ref=master#6cedbcb362aeeb34b278e0a5897fbcfe2d4ebdc9", .url = "git+https://github.com/neurocyte/flow-syntax?ref=master#10b92330cf0ecaa39a52d3a8d190f7fb384b7b09",
.hash = "flow_syntax-0.6.0-X8jOoWgVAQBUwyjxkLiEgB8TJcoUoEKo7ISaJvL7yYrP", .hash = "flow_syntax-0.1.0-X8jOoU8VAQCOYNTiuB7y2aIBP1V3OXXHa8WvE3eXtpDK",
}, },
.flags = .{ .flags = .{
.url = "git+https://github.com/neurocyte/flags?ref=main#984b27948da3e4e40a253f76c85b51ec1a9ada11", .url = "git+https://github.com/neurocyte/flags?ref=main#984b27948da3e4e40a253f76c85b51ec1a9ada11",

View file

@ -404,14 +404,14 @@
["j", "select_down"], ["j", "select_down"],
["k", "select_up"], ["k", "select_up"],
["l", "select_right_helix"], ["l", "select_right_helix"],
["left", "select_left_helix"], ["left", "select_left"],
["down", "select_down"], ["down", "select_down"],
["up", "select_up"], ["up", "select_up"],
["right", "select_right_helix"], ["right", "select_right"],
["kp_left", "select_left_helix"], ["kp_left", "select_left"],
["kp_down", "select_down"], ["kp_down", "select_down"],
["kp_up", "select_up"], ["kp_up", "select_up"],
["kp_right", "select_right_helix"], ["kp_right", "select_right"],
["%", "select_all"], ["%", "select_all"],
["`", "switch_to_lowercase"], ["`", "switch_to_lowercase"],

View file

@ -38,7 +38,7 @@ pub fn load_entries(palette: *Type) !usize {
return if (palette.entries.items.len == 0) label.len else blk: { return if (palette.entries.items.len == 0) label.len else blk: {
var longest: usize = 0; var longest: usize = 0;
for (palette.entries.items) |item| longest = @max(longest, item.label.len); for (palette.entries.items) |item| longest = @max(longest, item.label.len);
break :blk longest + 3; break :blk if (longest < label.len) return label.len - longest + 1 else 1;
}; };
} }
@ -110,7 +110,7 @@ pub fn on_render_menu(palette: *Type, button: *Type.ButtonType, theme: *const Wi
var len = cbor.decodeArrayHeader(&iter) catch return false; var len = cbor.decodeArrayHeader(&iter) catch return false;
while (len > 0) : (len -= 1) { while (len > 0) : (len -= 1) {
if (cbor.matchValue(&iter, cbor.extract(&index)) catch break) { if (cbor.matchValue(&iter, cbor.extract(&index)) catch break) {
tui.render_match_cell(&button.plane, 0, index + 2, theme) catch break; tui.render_match_cell(&button.plane, 0, index + 1, theme) catch break;
} else break; } else break;
} }
return false; return false;