refactor: rename file_tree and simplify naming
This makes the file tree palette match the other palettes a little better.
This commit is contained in:
parent
018c8c30d8
commit
1fd9cdfd7f
5 changed files with 10 additions and 12 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
["ctrl+=", "adjust_fontsize", 1.0],
|
["ctrl+=", "adjust_fontsize", 1.0],
|
||||||
["ctrl+-", "adjust_fontsize", -1.0],
|
["ctrl+-", "adjust_fontsize", -1.0],
|
||||||
["ctrl+r", "find_file"],
|
["ctrl+r", "find_file"],
|
||||||
["ctrl+x d", "open_project_file_tree"],
|
["ctrl+x d", "open_file_tree"],
|
||||||
["ctrl+h ctrl+a", "open_help"],
|
["ctrl+h ctrl+a", "open_help"],
|
||||||
["ctrl+c ctrl+o", "open_recent_project"],
|
["ctrl+c ctrl+o", "open_recent_project"],
|
||||||
["ctrl+c g", "find_in_files"],
|
["ctrl+c g", "find_in_files"],
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
["ctrl+w", "close_split"],
|
["ctrl+w", "close_split"],
|
||||||
["ctrl+o", "open_file"],
|
["ctrl+o", "open_file"],
|
||||||
["ctrl+e", "open_recent"],
|
["ctrl+e", "open_recent"],
|
||||||
["ctrl+shift+e", "open_project_file_tree"],
|
["ctrl+shift+e", "open_file_tree"],
|
||||||
["alt+o", "open_previous_file"],
|
["alt+o", "open_previous_file"],
|
||||||
["ctrl+shift+t", "restore_closed_tab"],
|
["ctrl+shift+t", "restore_closed_tab"],
|
||||||
["ctrl+shift+f5", "reload_file"],
|
["ctrl+shift+f5", "reload_file"],
|
||||||
|
|
|
||||||
|
|
@ -220,7 +220,7 @@
|
||||||
["page_down", "move_scroll_page_down"],
|
["page_down", "move_scroll_page_down"],
|
||||||
|
|
||||||
["space F", "find_file"],
|
["space F", "find_file"],
|
||||||
["space e", "open_project_file_tree"],
|
["space e", "open_file_tree"],
|
||||||
["space S", "workspace_symbol_picker"],
|
["space S", "workspace_symbol_picker"],
|
||||||
["space D", "workspace_diagnostics_picker"],
|
["space D", "workspace_diagnostics_picker"],
|
||||||
["space P", "system_paste"],
|
["space P", "system_paste"],
|
||||||
|
|
|
||||||
|
|
@ -10,12 +10,10 @@ pub const Type = @import("palette.zig").Create(@This());
|
||||||
const module_name = @typeName(@This());
|
const module_name = @typeName(@This());
|
||||||
const Widget = @import("../../Widget.zig");
|
const Widget = @import("../../Widget.zig");
|
||||||
|
|
||||||
pub const label = "File Explorer";
|
pub const label = "Filter tree";
|
||||||
pub const name = "File Explorer";
|
pub const name = " tree";
|
||||||
pub const description = "Project file explorer";
|
pub const description = "file tree";
|
||||||
pub const icon = " ";
|
pub const icon = " ";
|
||||||
pub const modal_dim = true;
|
|
||||||
pub const placement = .top_center;
|
|
||||||
|
|
||||||
pub const NodeType = enum {
|
pub const NodeType = enum {
|
||||||
file,
|
file,
|
||||||
|
|
@ -1371,10 +1371,10 @@ const cmds = struct {
|
||||||
}
|
}
|
||||||
pub const open_command_palette_meta: Meta = .{ .description = "Command palette" };
|
pub const open_command_palette_meta: Meta = .{ .description = "Command palette" };
|
||||||
|
|
||||||
pub fn open_project_file_tree(self: *Self, _: Ctx) Result {
|
pub fn open_file_tree(self: *Self, _: Ctx) Result {
|
||||||
return self.enter_overlay_mode(@import("mode/overlay/project_file_tree_palette.zig").Type);
|
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 {
|
pub fn insert_command_name(self: *Self, _: Ctx) Result {
|
||||||
return self.enter_overlay_mode(@import("mode/overlay/list_all_commands_palette.zig").Type);
|
return self.enter_overlay_mode(@import("mode/overlay/list_all_commands_palette.zig").Type);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue