Skip to content

Commit 7e80737

Browse files
committed
[WARP] Make plugin commands more discoverable
Removing the nesting because we now scope view plugin commands out of the context menu
1 parent cbf39e0 commit 7e80737

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

plugins/warp/src/plugin.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,21 @@ pub extern "C" fn CorePluginInit() -> bool {
6767
workflow::RunMatcher {},
6868
);
6969

70+
#[cfg(debug_assertions)]
7071
register_command(
7172
"WARP\\Debug\\Cache",
7273
"Debug cache sizes... because...",
7374
debug::DebugCache {},
7475
);
7576

77+
#[cfg(debug_assertions)]
7678
register_command(
7779
"WARP\\Debug\\Invalidate Caches",
7880
"Invalidate all WARP caches",
7981
debug::DebugInvalidateCache {},
8082
);
8183

84+
#[cfg(debug_assertions)]
8285
register_command_for_function(
8386
"WARP\\Debug\\Function Signature",
8487
"Print the entire signature for the function",
@@ -92,19 +95,19 @@ pub extern "C" fn CorePluginInit() -> bool {
9295
);
9396

9497
register_command_for_function(
95-
"WARP\\Function\\Include",
98+
"WARP\\Include Function",
9699
"Add current function to the list of functions to add to the signature file",
97100
function::IncludeFunction {},
98101
);
99102

100103
register_command_for_function(
101-
"WARP\\Function\\Copy GUID",
104+
"WARP\\Copy GUID",
102105
"Copy the computed GUID for the function",
103106
function::CopyFunctionGUID {},
104107
);
105108

106109
register_command(
107-
"WARP\\Function\\Find GUID",
110+
"WARP\\Find GUID",
108111
"Locate the function in the view using a GUID",
109112
function::FindFunctionFromGUID {},
110113
);

0 commit comments

Comments
 (0)