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
|
|
@ -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,
|
||||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue