Skip to content

[search] Make regex matching default [FCOM-12] - #1136

Merged
davidrunger merged 1 commit into
mainfrom
options/regex-default
Aug 28, 2026
Merged

[search] Make regex matching default [FCOM-12]#1136
davidrunger merged 1 commit into
mainfrom
options/regex-default

Conversation

@davidrunger

Copy link
Copy Markdown
Owner

Make regular-expression matching the default for search strings and replace the -r/--regex flags with -F/--fixed-strings for users who need literal matching.

The query pipeline must keep using a composite rg expression so that commit and diff headers remain available to the parser. Fixed-string searches therefore escape the user pattern before embedding it in that expression. When the querier invokes fcom in parse mode, it forwards --fixed-strings so the parser applies the same matching semantics.

Update the executable help examples, README help snapshot, and unreleased changelog entry to document the breaking default.

codex resume 01a04957-3702-7290-846b-e8ff8330a979

Make regular-expression matching the default for search strings and replace the `-r`/`--regex` flags with `-F`/`--fixed-strings` for users who need literal matching.

The query pipeline must keep using a composite `rg` expression so that commit and diff headers remain available to the parser. Fixed-string searches therefore escape the user pattern before embedding it in that expression. When the querier invokes `fcom` in parse mode, it forwards `--fixed-strings` so the parser applies the same matching semantics.

Update the executable help examples, README help snapshot, and unreleased changelog entry to document the breaking default.

codex resume 01a04957-3702-7290-846b-e8ff8330a979
@davidrunger
davidrunger merged commit 12c1223 into main Aug 28, 2026
1 check passed
@davidrunger
davidrunger deleted the options/regex-default branch August 28, 2026 17:40
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