cad-editor/src/modules
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Karim Jerbi 9c8f841f71 fix(insert): capped interactive block search and CLIPROMPTLINES
INSERT enumerated all block names in a single prompt string, causing unbounded overlay growth and full-screen occlusion in drawings with many blocks. Replace prompt enumeration with a ranked, incrementally filtered suggestion model: BlockPicker maintains precomputed lower/upper caches and usage ranks (MRU/frequency), filters via O(n) substring scan and partial sorting (select_nth_unstable) to O(k), bounded to CLIPROMPTLINES.

Introduce CLIPROMPTLINES (Integer 0-50, Registry, default 3) for the number of temporary prompt lines above the command window; persist in UserSettings, expose via SETVAR and direct entry, enforce in CommandLine::view. Suggestion count is in direct relation to CLIPROMPTLINES (limit = clip, capped to 50).

Make search live without requiring Enter: add CadCommand::on_live_input, implement for INSERT/MINSERT via picker.set_needle, and wire to command-line input paths (Message::CommandInput, on_command_append_char, on_command_backspace). Updates use upper/lower caches and partial sort for <0.2ms per keystroke on 10k blocks, with debounced block-usage persistence (MRU cap 20, freq cap 200) to avoid I/O thrash. Correct tri_count test helper to use display_from_solid.
2026-08-25 23:18:05 +01:00
..
annotate fix(dimension): complete ordinate workflow 2026-08-25 21:36:04 +03:00
draw fix(dimension): complete ordinate workflow 2026-08-25 21:36:04 +03:00
insert fix(insert): capped interactive block search and CLIPROMPTLINES 2026-08-25 23:18:05 +01:00
layout feat(plot): add Print All workflow 2026-08-04 11:29:11 +03:00
manage chore: remove orphaned manage/mview.rs dead code 2026-07-12 00:37:49 +03:00
model fix(polyline): render fill mode boundaries 2026-08-24 22:18:44 +03:00
view fix(polyline): render fill mode boundaries 2026-08-24 22:18:44 +03:00
mod.rs refactor: replace build.rs module codegen with a static registry 2026-06-26 23:19:20 +03:00
registry.rs refactor: replace build.rs module codegen with a static registry 2026-06-26 23:19:20 +03:00