cad-editor/src/ui
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 05ea31aa2a feat(commandline): autocomplete suggestions + inventory-based registry
Type-as-you-go suggestion popup above the input that filters known
command names by substring (so `LEADER` surfaces both LEADER and
MLEADER). Up / Down navigates the list, Enter dispatches the
highlighted entry, clicking a row dispatches directly. Esc on a
non-empty input clears the buffer instead of escalating to
command-cancel.

The name corpus comes from `inventory::submit!` blocks placed next
to each `CadCommand` impl rather than a hand-maintained static list.
Adding a new interactive command means dropping one `inventory::submit!`
line in its own module file — the autocomplete picks it up at the
next compile. 98 submissions seeded across 60 module files;
`command::all_registered_command_names()` flattens them at runtime.

One-shot dispatch arms in `app/commands.rs` (NEW, OPEN, SAVE, UNDO,
…) don't have a `CadCommand` impl and are therefore absent from
autocomplete by design.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 22:45:54 +03:00
..
ribbon feat(commandline): always-on keyboard capture + space submits like enter 2026-05-26 18:59:51 +03:00
about.rs chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00
app_menu.rs chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00
command_line.rs feat(commandline): autocomplete suggestions + inventory-based registry 2026-05-26 22:45:54 +03:00
dimstyle.rs cargo fmt 2026-05-12 10:36:15 +03:00
layers.rs chore: remove dead UI helpers and orphan toolbar stubs 2026-05-16 00:04:44 +03:00
layout_manager.rs cargo fmt 2026-05-12 10:36:15 +03:00
mlstyle.rs cargo fmt 2026-05-12 10:36:15 +03:00
mod.rs feat: in-app update notice — checks GitHub releases on startup 2026-05-16 19:55:57 +03:00
open_progress.rs feat(io): show loading overlay while opening CAD files 2026-05-13 09:59:07 +03:00
overlay.rs cargo fmt 2026-05-12 10:36:15 +03:00
page_setup.rs cargo fmt 2026-05-12 10:36:15 +03:00
plotstyle.rs cargo fmt 2026-05-12 10:36:15 +03:00
properties.rs chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00
scale_popup.rs feat: correct viewport scale calculation with correct dimension and text scaling 2026-05-19 00:26:08 +03:00
shortcuts.rs cargo fmt 2026-05-12 10:36:15 +03:00
snap_popup.rs chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00
statusbar.rs fix(polyline): correct wide-polyline fill band arc center + add LWDISPLAY toggle 2026-05-23 07:15:26 +03:00
tablestyle.rs cargo fmt 2026-05-12 10:36:15 +03:00
textstyle.rs cargo fmt 2026-05-12 10:36:15 +03:00
update_notice.rs chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00