feat(buffers): add home screen save all command
This commit is contained in:
parent
661808f316
commit
4dddadb46d
1 changed files with 6 additions and 0 deletions
|
@ -245,6 +245,12 @@ const cmds = struct {
|
|||
const Ctx = command.Context;
|
||||
const Result = command.Result;
|
||||
|
||||
pub fn save_all(_: *Self, _: Ctx) Result {
|
||||
if (tui.get_buffer_manager()) |bm|
|
||||
bm.save_all() catch |e| return tp.exit_error(e, @errorReturnTrace());
|
||||
}
|
||||
pub const save_all_meta = .{ .description = "Save all changed files" };
|
||||
|
||||
pub fn home_menu_down(self: *Self, _: Ctx) Result {
|
||||
self.menu.select_down();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue