summaryrefslogtreecommitdiff
path: root/plugins/warp/src/plugin.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-07-02 13:40:41 -0400
committerMason Reed <mason@vector35.com>2025-07-02 16:24:48 -0400
commit7e807379d4f6092d381d3403c385b2d4596692e6 (patch)
tree524e9e7a3db8fac5315b87d8d84dab35ea99e0fd /plugins/warp/src/plugin.rs
parentcbf39e0505c462d80c2485f7209c303be922b822 (diff)
[WARP] Make plugin commands more discoverable
Removing the nesting because we now scope view plugin commands out of the context menu
Diffstat (limited to 'plugins/warp/src/plugin.rs')
-rw-r--r--plugins/warp/src/plugin.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/warp/src/plugin.rs b/plugins/warp/src/plugin.rs
index f8c4c0c5..3380c619 100644
--- a/plugins/warp/src/plugin.rs
+++ b/plugins/warp/src/plugin.rs
@@ -67,18 +67,21 @@ pub extern "C" fn CorePluginInit() -> bool {
workflow::RunMatcher {},
);
+ #[cfg(debug_assertions)]
register_command(
"WARP\\Debug\\Cache",
"Debug cache sizes... because...",
debug::DebugCache {},
);
+ #[cfg(debug_assertions)]
register_command(
"WARP\\Debug\\Invalidate Caches",
"Invalidate all WARP caches",
debug::DebugInvalidateCache {},
);
+ #[cfg(debug_assertions)]
register_command_for_function(
"WARP\\Debug\\Function Signature",
"Print the entire signature for the function",
@@ -92,19 +95,19 @@ pub extern "C" fn CorePluginInit() -> bool {
);
register_command_for_function(
- "WARP\\Function\\Include",
+ "WARP\\Include Function",
"Add current function to the list of functions to add to the signature file",
function::IncludeFunction {},
);
register_command_for_function(
- "WARP\\Function\\Copy GUID",
+ "WARP\\Copy GUID",
"Copy the computed GUID for the function",
function::CopyFunctionGUID {},
);
register_command(
- "WARP\\Function\\Find GUID",
+ "WARP\\Find GUID",
"Locate the function in the view using a GUID",
function::FindFunctionFromGUID {},
);