Compare commits
No commits in common. "36d98dce7cab82aa95483eda12f0cf830d095bd2" and "018c8c30d81515ea337b3bbc1bc90d2df5f4dd72" have entirely different histories.
36d98dce7c
...
018c8c30d8
6 changed files with 15 additions and 13 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_file_tree"],
|
["ctrl+x d", "open_project_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_file_tree"],
|
["ctrl+shift+e", "open_project_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_file_tree"],
|
["space e", "open_project_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,10 +10,12 @@ 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 = "Filter tree";
|
pub const label = "File Explorer";
|
||||||
pub const name = " tree";
|
pub const name = "File Explorer";
|
||||||
pub const description = "file tree";
|
pub const description = "Project file explorer";
|
||||||
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,
|
||||||
|
|
@ -14,9 +14,9 @@ const ed = @import("../../editor.zig");
|
||||||
const module_name = @typeName(@This());
|
const module_name = @typeName(@This());
|
||||||
const Widget = @import("../../Widget.zig");
|
const Widget = @import("../../Widget.zig");
|
||||||
|
|
||||||
pub const label = "Search symbols";
|
pub const label = "Go to Symbol";
|
||||||
pub const name = " symbols";
|
pub const name = "Go to";
|
||||||
pub const description = "file symbols";
|
pub const description = "Symbols in scope";
|
||||||
pub const icon = " ";
|
pub const icon = " ";
|
||||||
pub const modal_dim = false;
|
pub const modal_dim = false;
|
||||||
pub const placement = .top_right;
|
pub const placement = .top_right;
|
||||||
|
|
|
||||||
|
|
@ -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_file_tree(self: *Self, _: Ctx) Result {
|
pub fn open_project_file_tree(self: *Self, _: Ctx) Result {
|
||||||
return self.enter_overlay_mode(@import("mode/overlay/file_tree_palette.zig").Type);
|
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 {
|
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