Skip to content

Add SE4-style regex snippet context menu to find/replace#12682

Open
niksedk wants to merge 2 commits into
mainfrom
feature/regex-context-menu
Open

Add SE4-style regex snippet context menu to find/replace#12682
niksedk wants to merge 2 commits into
mainfrom
feature/regex-context-menu

Conversation

@niksedk

@niksedk niksedk commented Jul 20, 2026

Copy link
Copy Markdown
Member

SE4 had a context menu on regex-enabled search boxes that inserted common regex snippets; this brings it back in SE5.

  • New shared helper RegexContextFlyout builds a MenuFlyout inserting snippets at the caret (\b, \B, \r\n, \d, \D, ., \s, \S, *, +, [test], [^test]), plus a single \n item for replace-with boxes — same set as SE4's GetRegExContextMenu.
  • Attached in Find, Replace (find + replace-with), and Multiple Replace's edit-rule dialog (find + replace-with). The menu is only active while the regular-expression mode is selected; otherwise the default cut/copy/paste menu is restored.
  • New language section Edit.RegularExpressionContextMenu with the 13 SE4 strings (English defaults match SE4).

🤖 Generated with Claude Code

niksedk and others added 2 commits July 20, 2026 21:59
Right-clicking the search box in Find, Replace, and Multiple Replace's
edit-rule dialog now shows a menu of common regex snippets (\b, \d, .,
[test], etc.) when the regular-expression mode is selected, inserting
the snippet at the caret. The replace-with boxes get a single new-line
(\n) item. New language section: Edit.RegularExpressionContextMenu.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…on macOS

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant