Merge pull request #1785 from ramox81/codex/selection-found-messages

Selection: report what each pick found while a command gathers objects

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	src/locale_catalog.rs
This commit is contained in:
Hakan Seven committed 2026-10-14 23:57:20 +03:00
commit b5fb42e9f8
28 files changed
+171 -16

No files matched your search

+8
View File
@@ -800,6 +800,12 @@ pub(super) struct OpenCADStudio {
block_freq: std::collections::HashMap<String, u32>,
/// BLOCKMRULIST: how many recent blocks the palette keeps (0–100).
pub(crate) block_mru_list: u8,
/// The selection the gathering command had after the last pick (keyed by
/// the command), for the `N found, M total` line.
pub(crate) selection_report: Option<(usize, Vec<codec::Handle>)>,
/// The objects the last selection step picked (a click, a window, a
/// fence, Last / Previous / All) and whether it removed them.
pub(crate) last_pick: Option<(Vec<codec::Handle>, bool)>,
/// The Edit Reference dialog's remembered settings.
pub(crate) refedit_options: crate::app::settings::RefEditOptions,
/// BLOCKREDEFINEMODE (0–2).
@@ -4696,6 +4702,8 @@ impl OpenCADStudio {
block_mru: Vec::new(),
block_freq: std::collections::HashMap::new(),
block_mru_list: 50,
selection_report: None,
last_pick: None,
refedit_options: Default::default(),
block_redefine_mode: 1,
block_navigate: ".".to_string(),