diff --git a/src/keybind/builtin/helix.json b/src/keybind/builtin/helix.json index 460b411..6282250 100644 --- a/src/keybind/builtin/helix.json +++ b/src/keybind/builtin/helix.json @@ -228,7 +228,7 @@ ["space R", "replace_selections_with_clipboard"], ["space ?", "open_command_palette"], ["space f", "find_file"], - ["space g", "open_changed_files"], + ["space g", "show_vcs_status"], ["space b", "switch_buffers"], ["space j", "jumplist_picker"], ["space s", "symbol_picker"], diff --git a/src/tui/mode/overlay/open_changed.zig b/src/tui/mode/overlay/vcs_status.zig similarity index 99% rename from src/tui/mode/overlay/open_changed.zig rename to src/tui/mode/overlay/vcs_status.zig index 3be62ba..2ecfc41 100644 --- a/src/tui/mode/overlay/open_changed.zig +++ b/src/tui/mode/overlay/vcs_status.zig @@ -37,7 +37,7 @@ longest: usize, commands: Commands = undefined, 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 ButtonType = MenuType.ButtonType; @@ -75,7 +75,7 @@ pub fn create(allocator: std.mem.Allocator) !tui.Mode { .insert_command = "overlay_insert_bytes", }); mode.event_handler = EventHandler.to_owned(self); - mode.name = "󰈞 open changed"; + mode.name = " status"; return mode; } diff --git a/src/tui/tui.zig b/src/tui/tui.zig index 65c7e3e..2f050d1 100644 --- a/src/tui/tui.zig +++ b/src/tui/tui.zig @@ -1032,10 +1032,10 @@ const cmds = struct { } pub const open_recent_meta: Meta = .{ .description = "Open recent" }; - pub fn open_changed_files(self: *Self, _: Ctx) Result { - return self.enter_overlay_mode(@import("mode/overlay/open_changed.zig")); + pub fn show_vcs_status(self: *Self, _: Ctx) Result { + 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 { try project_manager.request_recent_projects();