Compare commits
No commits in common. "0a195a4b7994fcd9d490faff2b552e3272a40ffa" and "6421dae0c845093610b111f6dd3bc76e41d0405c" have entirely different histories.
0a195a4b79
...
6421dae0c8
3 changed files with 4 additions and 9 deletions
|
@ -19,9 +19,9 @@ https://github.com/neurocyte/flow/assets/1552770/97aae817-c209-4c08-bc65-0a0bf1f
|
||||||
curl -fsSL https://flow-control.dev/install | sh
|
curl -fsSL https://flow-control.dev/install | sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Binary release builds are found here: [neurocyte/flow/releases](https://github.com/neurocyte/flow/releases/latest)
|
Binary release builds are found here: [neurocyte/flow/releases](https://github.com/neurocyte/flow/releases)
|
||||||
|
|
||||||
Nightly binary builds are found here: [neurocyte/flow-nightly/releases](https://github.com/neurocyte/flow-nightly/releases/latest)
|
Nightly binary builds are found here: [neurocyte/flow-nightly/releases](https://github.com/neurocyte/flow-nightly/releases)
|
||||||
|
|
||||||
Or check your favorite local system package repository.
|
Or check your favorite local system package repository.
|
||||||
|
|
||||||
|
|
|
@ -93,10 +93,8 @@ pub fn addP(self: *Self, w_: Widget) !*Widget {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn remove(self: *Self, w: Widget) void {
|
pub fn remove(self: *Self, w: Widget) void {
|
||||||
for (self.widgets.items, 0..) |p, i| if (p.widget.ptr == w.ptr) {
|
for (self.widgets.items, 0..) |p, i| if (p.widget.ptr == w.ptr)
|
||||||
self.widgets.orderedRemove(i).widget.deinit(self.allocator);
|
self.widgets.orderedRemove(i).widget.deinit(self.allocator);
|
||||||
return;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn remove_all(self: *Self) void {
|
pub fn remove_all(self: *Self) void {
|
||||||
|
|
|
@ -28,7 +28,6 @@ const home = @import("home.zig");
|
||||||
const logview = @import("logview.zig");
|
const logview = @import("logview.zig");
|
||||||
const filelist_view = @import("filelist_view.zig");
|
const filelist_view = @import("filelist_view.zig");
|
||||||
const info_view = @import("info_view.zig");
|
const info_view = @import("info_view.zig");
|
||||||
const input_view = @import("inputview.zig");
|
|
||||||
|
|
||||||
const Self = @This();
|
const Self = @This();
|
||||||
const Commands = command.Collection(cmds);
|
const Commands = command.Collection(cmds);
|
||||||
|
@ -515,8 +514,6 @@ const cmds = struct {
|
||||||
try self.toggle_panel_view(info_view, false)
|
try self.toggle_panel_view(info_view, false)
|
||||||
else if (self.is_panel_view_showing(filelist_view))
|
else if (self.is_panel_view_showing(filelist_view))
|
||||||
try self.toggle_panel_view(filelist_view, false)
|
try self.toggle_panel_view(filelist_view, false)
|
||||||
else if (self.is_panel_view_showing(input_view))
|
|
||||||
try self.toggle_panel_view(input_view, false)
|
|
||||||
else
|
else
|
||||||
try self.toggle_panel_view(logview, false);
|
try self.toggle_panel_view(logview, false);
|
||||||
}
|
}
|
||||||
|
@ -533,7 +530,7 @@ const cmds = struct {
|
||||||
pub const show_logview_meta: Meta = .{ .description = "View log" };
|
pub const show_logview_meta: Meta = .{ .description = "View log" };
|
||||||
|
|
||||||
pub fn toggle_inputview(self: *Self, _: Ctx) Result {
|
pub fn toggle_inputview(self: *Self, _: Ctx) Result {
|
||||||
try self.toggle_panel_view(input_view, false);
|
try self.toggle_panel_view(@import("inputview.zig"), false);
|
||||||
}
|
}
|
||||||
pub const toggle_inputview_meta: Meta = .{ .description = "Toggle raw input log" };
|
pub const toggle_inputview_meta: Meta = .{ .description = "Toggle raw input log" };
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue