cad-editor/crates/ocs_plugin_api/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 77c0c5a9d0 feat(plugin): surface loaded plugin commands in command-line autocomplete
Autocomplete suggestions came only from all_registered_command_names() —
the compile-time inventory registry returning &'static str — so
runtime-loaded plugin commands could never appear. Typing a plugin's
command prefix (e.g. `LS_`) showed nothing even with the plugin loaded
and its ribbon tab active; dispatch worked, only discovery was blind.

Collect each enabled plugin's ribbon ToolDef command ids plus its
manifest command_prefixes into a dynamic candidate pool
(OwnedRibbonGroup::command_ids → PluginManager::command_names →
plugin_command_names), refreshed in rebuild_ribbon_modules on startup
load, settings reload, and every enable/disable toggle. ranked_matches
now merges this pool with the static registry and returns owned strings.

A plugin.toml `commands = [...]` list for sub-verbs with no ribbon button
(e.g. LS_AUTOLABEL) stays a follow-up — it's a plugin-API surface change.

Closes #272

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-04 23:01:53 +03:00
..
ipc feat(plugin): persist XDATA to DWG and let plugins modify/delete entities (#249, #250) 2026-07-02 15:39:26 +03:00
process feat(plugin): surface loaded plugin commands in command-line autocomplete 2026-07-04 23:01:53 +03:00
ribbon feat(plugin): surface loaded plugin commands in command-line autocomplete 2026-07-04 23:01:53 +03:00
host.rs feat(plugin): persist XDATA to DWG and let plugins modify/delete entities (#249, #250) 2026-07-02 15:39:26 +03:00
lib.rs Fix 5: Allow backward-compatibility and add plugin-template-v2 2026-06-25 00:02:17 +03:00
manifest.rs Fix 5: Allow backward-compatibility and add plugin-template-v2 2026-06-25 00:02:17 +03:00
process.rs feat(plugin): quiet plugin IPC logs; print one "Loaded plugin" line 2026-07-01 13:28:10 +03:00
ribbon.rs test(core): ignore ribbon_groups microbenchmark by default 2026-07-03 07:48:31 +03:00
runner.rs perf(core): cache ribbon_groups() with OnceLock, avoid per-frame tree allocations 2026-07-02 21:00:57 +01:00
shm.rs Fix 4: shared-memory 2026-06-25 00:01:36 +03:00