Compare commits
5 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
64deb9cee6 | ||
|
|
20a2b77db1 | ||
| 1289cfc3af | |||
| 05a551b5b4 | |||
| 7019d56142 |
4 changed files with 9 additions and 9 deletions
|
|
@ -46,7 +46,7 @@ and is my daily driver for almost everything.
|
||||||
|
|
||||||
# Roadmap
|
# Roadmap
|
||||||
|
|
||||||
See our [devlog](/devlog/2025) for on-going updates from the development team.
|
See our [devlog](https://flow-control.dev/devlog/2025/) for on-going updates from the development team.
|
||||||
|
|
||||||
## In Development
|
## In Development
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@
|
||||||
|
|
||||||
.dependencies = .{
|
.dependencies = .{
|
||||||
.syntax = .{
|
.syntax = .{
|
||||||
.url = "git+https://github.com/neurocyte/flow-syntax?ref=master#10b92330cf0ecaa39a52d3a8d190f7fb384b7b09",
|
.url = "git+https://github.com/neurocyte/flow-syntax?ref=master#6cedbcb362aeeb34b278e0a5897fbcfe2d4ebdc9",
|
||||||
.hash = "flow_syntax-0.1.0-X8jOoU8VAQCOYNTiuB7y2aIBP1V3OXXHa8WvE3eXtpDK",
|
.hash = "flow_syntax-0.6.0-X8jOoWgVAQBUwyjxkLiEgB8TJcoUoEKo7ISaJvL7yYrP",
|
||||||
},
|
},
|
||||||
.flags = .{
|
.flags = .{
|
||||||
.url = "git+https://github.com/neurocyte/flags?ref=main#984b27948da3e4e40a253f76c85b51ec1a9ada11",
|
.url = "git+https://github.com/neurocyte/flags?ref=main#984b27948da3e4e40a253f76c85b51ec1a9ada11",
|
||||||
|
|
|
||||||
|
|
@ -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"],
|
["left", "select_left_helix"],
|
||||||
["down", "select_down"],
|
["down", "select_down"],
|
||||||
["up", "select_up"],
|
["up", "select_up"],
|
||||||
["right", "select_right"],
|
["right", "select_right_helix"],
|
||||||
["kp_left", "select_left"],
|
["kp_left", "select_left_helix"],
|
||||||
["kp_down", "select_down"],
|
["kp_down", "select_down"],
|
||||||
["kp_up", "select_up"],
|
["kp_up", "select_up"],
|
||||||
["kp_right", "select_right"],
|
["kp_right", "select_right_helix"],
|
||||||
["%", "select_all"],
|
["%", "select_all"],
|
||||||
|
|
||||||
["`", "switch_to_lowercase"],
|
["`", "switch_to_lowercase"],
|
||||||
|
|
|
||||||
|
|
@ -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 if (longest < label.len) return label.len - longest + 1 else 1;
|
break :blk longest + 3;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -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 + 1, theme) catch break;
|
tui.render_match_cell(&button.plane, 0, index + 2, theme) catch break;
|
||||||
} else break;
|
} else break;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue