cad-editor/src/app/commands
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
..
blocks.rs feat(commands): add CLOSE, HIDE, VISUALSTYLES, QUICKCALC, HYPERLINK, XOPEN 2026-06-29 09:04:18 +03:00
dim.rs fix(commands): JUSTIFYTEXT sets vertical alignment for single-line TEXT 2026-07-03 09:51:34 +03:00
display.rs feat(ui): replace app-menu logo with a quick-access file toolbar 2026-07-03 09:51:49 +03:00
draw.rs fix(scene): correct MIRROR of TEXT under MIRRTEXT (commit + preview) 2026-07-03 12:42:55 +03:00
fileops.rs fix(background): step-by-step prompt + Default preset (#217) 2026-06-30 17:55:44 +03:00
inquiry.rs fix(paper): keep model 3D solids off the paper-space sheet 2026-07-03 23:29:18 +03:00
layerprops.rs fix(properties): repaint on linetype/lineweight/layer edits (#231 class) 2026-07-01 19:14:35 +03:00
layers.rs fix(select): accumulate selection set, apply on Enter/RMB (#220) 2026-06-29 22:58:21 +03:00
mod.rs feat(plugin): surface loaded plugin commands in command-line autocomplete 2026-07-04 23:01:53 +03:00
styleprops.rs feat(commands): prompt for a system-variable value on the next line 2026-07-03 12:42:55 +03:00
view.rs feat(ui): replace app-menu logo with a quick-access file toolbar 2026-07-03 09:51:49 +03:00