refactor: rename open_changed_files to show_vcs_status
This fits a bit better as we will add commands to do more than just open the files in the status palette.
This commit is contained in:
parent
7f7f12a441
commit
61de5d89d7
3 changed files with 6 additions and 6 deletions
|
|
@ -228,7 +228,7 @@
|
||||||
["space R", "replace_selections_with_clipboard"],
|
["space R", "replace_selections_with_clipboard"],
|
||||||
["space ?", "open_command_palette"],
|
["space ?", "open_command_palette"],
|
||||||
["space f", "find_file"],
|
["space f", "find_file"],
|
||||||
["space g", "open_changed_files"],
|
["space g", "show_vcs_status"],
|
||||||
["space b", "switch_buffers"],
|
["space b", "switch_buffers"],
|
||||||
["space j", "jumplist_picker"],
|
["space j", "jumplist_picker"],
|
||||||
["space s", "symbol_picker"],
|
["space s", "symbol_picker"],
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ longest: usize,
|
||||||
commands: Commands = undefined,
|
commands: Commands = undefined,
|
||||||
buffer_manager: ?*BufferManager,
|
buffer_manager: ?*BufferManager,
|
||||||
|
|
||||||
const inputbox_label = "Open changed files by name";
|
const inputbox_label = "Changed or untracked files";
|
||||||
const MenuType = Menu.Options(*Self).MenuType;
|
const MenuType = Menu.Options(*Self).MenuType;
|
||||||
const ButtonType = MenuType.ButtonType;
|
const ButtonType = MenuType.ButtonType;
|
||||||
|
|
||||||
|
|
@ -75,7 +75,7 @@ pub fn create(allocator: std.mem.Allocator) !tui.Mode {
|
||||||
.insert_command = "overlay_insert_bytes",
|
.insert_command = "overlay_insert_bytes",
|
||||||
});
|
});
|
||||||
mode.event_handler = EventHandler.to_owned(self);
|
mode.event_handler = EventHandler.to_owned(self);
|
||||||
mode.name = " open changed";
|
mode.name = " status";
|
||||||
return mode;
|
return mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1032,10 +1032,10 @@ const cmds = struct {
|
||||||
}
|
}
|
||||||
pub const open_recent_meta: Meta = .{ .description = "Open recent" };
|
pub const open_recent_meta: Meta = .{ .description = "Open recent" };
|
||||||
|
|
||||||
pub fn open_changed_files(self: *Self, _: Ctx) Result {
|
pub fn show_vcs_status(self: *Self, _: Ctx) Result {
|
||||||
return self.enter_overlay_mode(@import("mode/overlay/open_changed.zig"));
|
return self.enter_overlay_mode(@import("mode/overlay/vcs_status.zig"));
|
||||||
}
|
}
|
||||||
pub const open_changed_files_meta: Meta = .{ .description = "Open changed files (vcs)" };
|
pub const show_vcs_status_meta: Meta = .{ .description = "Show git status" };
|
||||||
|
|
||||||
pub fn open_recent_project(_: *Self, _: Ctx) Result {
|
pub fn open_recent_project(_: *Self, _: Ctx) Result {
|
||||||
try project_manager.request_recent_projects();
|
try project_manager.request_recent_projects();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue