diff --git a/src/keybind/builtin/emacs.json b/src/keybind/builtin/emacs.json index d7344e1..d57d10e 100644 --- a/src/keybind/builtin/emacs.json +++ b/src/keybind/builtin/emacs.json @@ -6,7 +6,7 @@ ["ctrl+=", "adjust_fontsize", 1.0], ["ctrl+-", "adjust_fontsize", -1.0], ["ctrl+r", "find_file"], - ["ctrl+x d", "open_file_tree"], + ["ctrl+x d", "open_project_file_tree"], ["ctrl+h ctrl+a", "open_help"], ["ctrl+c ctrl+o", "open_recent_project"], ["ctrl+c g", "find_in_files"], diff --git a/src/keybind/builtin/flow.json b/src/keybind/builtin/flow.json index 9ce0934..6453eda 100644 --- a/src/keybind/builtin/flow.json +++ b/src/keybind/builtin/flow.json @@ -28,7 +28,7 @@ ["ctrl+w", "close_split"], ["ctrl+o", "open_file"], ["ctrl+e", "open_recent"], - ["ctrl+shift+e", "open_file_tree"], + ["ctrl+shift+e", "open_project_file_tree"], ["alt+o", "open_previous_file"], ["ctrl+shift+t", "restore_closed_tab"], ["ctrl+shift+f5", "reload_file"], diff --git a/src/keybind/builtin/helix.json b/src/keybind/builtin/helix.json index 6184179..56cc684 100644 --- a/src/keybind/builtin/helix.json +++ b/src/keybind/builtin/helix.json @@ -220,7 +220,7 @@ ["page_down", "move_scroll_page_down"], ["space F", "find_file"], - ["space e", "open_file_tree"], + ["space e", "open_project_file_tree"], ["space S", "workspace_symbol_picker"], ["space D", "workspace_diagnostics_picker"], ["space P", "system_paste"], diff --git a/src/tui/mode/overlay/file_tree_palette.zig b/src/tui/mode/overlay/project_file_tree_palette.zig similarity index 98% rename from src/tui/mode/overlay/file_tree_palette.zig rename to src/tui/mode/overlay/project_file_tree_palette.zig index 012ba85..df306fc 100644 --- a/src/tui/mode/overlay/file_tree_palette.zig +++ b/src/tui/mode/overlay/project_file_tree_palette.zig @@ -10,10 +10,12 @@ pub const Type = @import("palette.zig").Create(@This()); const module_name = @typeName(@This()); const Widget = @import("../../Widget.zig"); -pub const label = "Filter tree"; -pub const name = "󰙅 tree"; -pub const description = "file tree"; -pub const icon = " "; +pub const label = "File Explorer"; +pub const name = "File Explorer"; +pub const description = "Project file explorer"; +pub const icon = " "; +pub const modal_dim = true; +pub const placement = .top_center; pub const NodeType = enum { file, diff --git a/src/tui/mode/overlay/symbol_palette.zig b/src/tui/mode/overlay/symbol_palette.zig index 2bbfb51..e6776d5 100644 --- a/src/tui/mode/overlay/symbol_palette.zig +++ b/src/tui/mode/overlay/symbol_palette.zig @@ -14,9 +14,9 @@ const ed = @import("../../editor.zig"); const module_name = @typeName(@This()); const Widget = @import("../../Widget.zig"); -pub const label = "Search symbols"; -pub const name = "󰊕 symbols"; -pub const description = "file symbols"; +pub const label = "Go to Symbol"; +pub const name = "Go to"; +pub const description = "Symbols in scope"; pub const icon = "󱎸 "; pub const modal_dim = false; pub const placement = .top_right; diff --git a/src/tui/tui.zig b/src/tui/tui.zig index c80fdde..1ed8ad5 100644 --- a/src/tui/tui.zig +++ b/src/tui/tui.zig @@ -1371,10 +1371,10 @@ const cmds = struct { } pub const open_command_palette_meta: Meta = .{ .description = "Command palette" }; - pub fn open_file_tree(self: *Self, _: Ctx) Result { - return self.enter_overlay_mode(@import("mode/overlay/file_tree_palette.zig").Type); + pub fn open_project_file_tree(self: *Self, _: Ctx) Result { + return self.enter_overlay_mode(@import("mode/overlay/project_file_tree_palette.zig").Type); } - pub const open_file_tree_meta: Meta = .{ .description = "File tree" }; + pub const open_project_file_tree_meta: Meta = .{ .description = "Project file tree explorer" }; pub fn insert_command_name(self: *Self, _: Ctx) Result { return self.enter_overlay_mode(@import("mode/overlay/list_all_commands_palette.zig").Type);