Add tabbed Find/Replace dialog in ted and implement Editor find/replace API#26
Merged
Merged
Conversation
Closed
Agent-Logs-Url: https://github.com/gui-cs/Text/sessions/77ed5a61-9ba7-41e5-a77b-323d7c17c964 Co-authored-by: tig <585482+tig@users.noreply.github.com>
Agent-Logs-Url: https://github.com/gui-cs/Text/sessions/77ed5a61-9ba7-41e5-a77b-323d7c17c964 Co-authored-by: tig <585482+tig@users.noreply.github.com>
Agent-Logs-Url: https://github.com/gui-cs/Text/sessions/77ed5a61-9ba7-41e5-a77b-323d7c17c964 Co-authored-by: tig <585482+tig@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add find and replace functionality to editor
Add tabbed Find/Replace dialog in ted and implement Editor find/replace API
May 9, 2026
tig
added a commit
that referenced
this pull request
May 9, 2026
…my spec Editor.FindReplace.cs: ReplaceAll now wraps its loop in TextDocument.RunUpdate () so every match it rewrites is grouped into one undo entry. Without this, replacing N occurrences took N Ctrl+Z presses to undo — a real R5 violation that shipped with PR #26. New tests in EditorFindReplaceTests cover: * ReplaceAll counts and rewrites every match * One undo step restores the original text * Zero matches → no-op, no document mutation * Null replacement throws * FindNext caret-relative selection + wraparound specs/10-autonomous-three-agent.md: Mini-spec for running Claude Code, Codex, and GitHub Copilot Coding Agent concurrently on a Mac mini, each independently executing toward MLP per specs/00-plan.md. Covers topology (per-agent clones, not worktrees), collision avoidance (branch prefixes, mirrored issue triplets, branch protection on develop), per-agent run modes, observability capture, comparison rubric, operator runbook.
tig
added a commit
that referenced
this pull request
May 9, 2026
examples/ted/FindReplaceDialog.cs: Add a "Find Previous" button to the Find tab that calls Editor.FindPrevious. Closes the gap that PR #26 introduced (FindPrevious shipped public with no caller). specs/00-plan.md: Add R9 to the architectural rules: no unused public/internal APIs in src/. Every public/internal member must have a non-test caller in src/ or examples/. Reviewers enforce this; Roslyn IDE0051 only catches private-scope cases. Cite the FindPrevious gap as the seed example. CLAUDE.md: Add a one-line cross-reference under "Coding standards" pointing at R9.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the initial Find/Replace UX in
ted(as requested in the Edit menu) and introduces the correspondingEditorAPI surface to perform find navigation and replacements.Ted UX: Edit menu + shared dialog
_Find...and_Replace...as the first items in the Edit menu.FindReplaceDialogwithTabs:_Find...opens on the Find tab;_Replace...opens on the Replace tab.Editor API: find/replace operations
Editor.FindNext,Editor.FindPrevious,Editor.ReplaceNext, andEditor.ReplaceAll.Coverage updates
Find...andReplace....