diff --git a/src/keybind/builtin/emacs.json b/src/keybind/builtin/emacs.json index d57d10e..d7344e1 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_project_file_tree"], + ["ctrl+x d", "open_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 6453eda..9ce0934 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_project_file_tree"], + ["ctrl+shift+e", "open_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 56cc684..6184179 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_project_file_tree"], + ["space e", "open_file_tree"], ["space S", "workspace_symbol_picker"], ["space D", "workspace_diagnostics_picker"], ["space P", "system_paste"], diff --git a/src/tui/mode/overlay/project_file_tree_palette.zig b/src/tui/mode/overlay/file_tree_palette.zig similarity index 98% rename from src/tui/mode/overlay/project_file_tree_palette.zig rename to src/tui/mode/overlay/file_tree_palette.zig index df306fc..012ba85 100644 --- a/src/tui/mode/overlay/project_file_tree_palette.zig +++ b/src/tui/mode/overlay/file_tree_palette.zig @@ -10,12 +10,10 @@ pub const Type = @import("palette.zig").Create(@This()); const module_name = @typeName(@This()); const Widget = @import("../../Widget.zig"); -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 label = "Filter tree"; +pub const name = "󰙅 tree"; +pub const description = "file tree"; +pub const icon = " "; pub const NodeType = enum { file, diff --git a/src/tui/tui.zig b/src/tui/tui.zig index 1ed8ad5..c80fdde 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_project_file_tree(self: *Self, _: Ctx) Result { - return self.enter_overlay_mode(@import("mode/overlay/project_file_tree_palette.zig").Type); + pub fn open_file_tree(self: *Self, _: Ctx) Result { + return self.enter_overlay_mode(@import("mode/overlay/file_tree_palette.zig").Type); } - pub const open_project_file_tree_meta: Meta = .{ .description = "Project file tree explorer" }; + pub const open_file_tree_meta: Meta = .{ .description = "File tree" }; pub fn insert_command_name(self: *Self, _: Ctx) Result { return self.enter_overlay_mode(@import("mode/overlay/list_all_commands_palette.zig").Type);