build: update to zig 0.14.0-dev.3039
This commit is contained in:
parent
1764b3259c
commit
53045123c6
41 changed files with 648 additions and 623 deletions
|
@ -262,33 +262,34 @@ fn select_next(self: *Self, dir: enum { up, down }) void {
|
|||
const cmds = struct {
|
||||
pub const Target = Self;
|
||||
const Ctx = command.Context;
|
||||
const Meta = command.Metadata;
|
||||
const Result = command.Result;
|
||||
|
||||
pub fn goto_prev_file(self: *Self, _: Ctx) Result {
|
||||
self.select_next(.up);
|
||||
self.menu.activate_selected();
|
||||
}
|
||||
pub const goto_prev_file_meta = .{ .description = "Navigate to previous file in the file list" };
|
||||
pub const goto_prev_file_meta: Meta = .{ .description = "Navigate to previous file in the file list" };
|
||||
|
||||
pub fn goto_next_file(self: *Self, _: Ctx) Result {
|
||||
self.select_next(.down);
|
||||
self.menu.activate_selected();
|
||||
}
|
||||
pub const goto_next_file_meta = .{ .description = "Navigate to next file in the file list" };
|
||||
pub const goto_next_file_meta: Meta = .{ .description = "Navigate to next file in the file list" };
|
||||
|
||||
pub fn select_prev_file(self: *Self, _: Ctx) Result {
|
||||
self.select_next(.up);
|
||||
}
|
||||
pub const select_prev_file_meta = .{ .description = "Select previous file in the file list" };
|
||||
pub const select_prev_file_meta: Meta = .{ .description = "Select previous file in the file list" };
|
||||
|
||||
pub fn select_next_file(self: *Self, _: Ctx) Result {
|
||||
self.select_next(.down);
|
||||
}
|
||||
pub const select_next_file_meta = .{ .description = "Select next file in the file list" };
|
||||
pub const select_next_file_meta: Meta = .{ .description = "Select next file in the file list" };
|
||||
|
||||
pub fn goto_selected_file(self: *Self, _: Ctx) Result {
|
||||
if (self.menu.selected == null) return tp.exit_error(error.NoSelectedFile, @errorReturnTrace());
|
||||
self.menu.activate_selected();
|
||||
}
|
||||
pub const goto_selected_file_meta = .{};
|
||||
pub const goto_selected_file_meta: Meta = .{};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue