feat(find): add find and replace

Closes #583
This commit is contained in:
Hakan Seven committed 2026-07-30 17:56:54 +03:00
1 parent 4af141ebec
commit c9aab122f0
10 files changed
+814 -7

No files matched your search

+1 -7
View File
@@ -1078,13 +1078,7 @@ impl OpenCADStudio {
// FIND <search> REPLACE <rep> — replace first occurrence (case-insensitive)
// FINDALL <search> REPLACE <rep> — replace all occurrences
"FIND" => {
use crate::command::ValuePromptCommand;
let c = ValuePromptCommand::new(
"FIND",
"FIND text to find (add REPLACE <text> by typing):",
);
self.command_line.push_info(&c.prompt());
self.tabs[self.active_tab].active_cmd = Some(Box::new(c));
return Some(Task::done(Message::FindReplaceOpen));
}
"FINDALL" => {
use crate::command::ValuePromptCommand;