Skip to content

Commit be5398f

Browse files
author
SqlRush
committed
Add Grep glob case-insensitive flag
1 parent 741173c commit be5398f

4 files changed

Lines changed: 96 additions & 36 deletions

File tree

docs/claude-code-go-rewrite-plan.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ test/parity/ # golden tests against TS/official behavior
210210
- 本轮补充:Grep 路径过滤现在支持 ripgrep 风格 `--glob`/`-g``--type`/`-t` aliases,执行和 structured content 都统一使用归一化后的 glob/type 过滤值。
211211
- 本轮补充:Grep 路径过滤现在支持 ripgrep 风格 `type_not`/`typeNot`/`type-not`/`--type-not`/`-T`,可在 `type` 限定后排除指定文件类型,structured content 会回传归一化后的排除类型。
212212
- 本轮补充:Grep 路径过滤现在支持 ripgrep 风格 `iglob`/`--iglob` 大小写不敏感 glob,和 `glob` 共享正向/`!` 排除规则集合并语义,structured content 会回传归一化后的 `iglob` 过滤值。
213+
- 本轮补充:Grep 路径过滤现在支持 ripgrep 风格 `glob_case_insensitive`/`globCaseInsensitive`/`glob-case-insensitive`/`--glob-case-insensitive` 及 no-override aliases,让普通 `glob`/`--glob`/`-g` 按大小写不敏感方式匹配。
213214
- 本轮补充:Grep `glob`/`--glob`/`-g` 路径过滤现在支持 ripgrep 风格 `!pattern` 排除规则,可与正向 glob、逗号/空白多 pattern 和 brace alternation 组合;只有排除规则时默认包含未被排除的路径。
214215
- 本轮补充:Grep 搜索现在支持 ripgrep 风格 `text`/`--text`/`-a`,可显式把二进制扩展名文件按文本读取参与匹配,structured content 会回传 `text` 状态;`-a` 同样兼容 quoted semantic boolean。
215216
- 本轮补充:Grep content 输出现在支持 ripgrep 风格 `passthru`/`passthrough`/`--passthru`/`--passthrough`,可输出被搜索文件的全部行并保留匹配行标记;启用后按官方语义覆盖 context 行数,quoted semantic boolean 同样兼容。

docs/first-second-parity-audit.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ Covered behavior:
138138
- `Grep` now accepts ripgrep-style traversal depth limiting through `max_depth`/`maxDepth`/`max-depth`/`--max-depth`/`-d`, including quoted numeric input and `--max-depth 0` directory no-op behavior.
139139
- `Grep` now accepts ripgrep-style negative type filtering through `type_not`/`typeNot`/`type-not`/`--type-not`/`-T`, applying it after any positive `type` filter and preserving structured filter metadata.
140140
- `Grep` now accepts ripgrep-style case-insensitive glob filtering through `iglob`/`--iglob`, sharing positive and `!` negative glob rule semantics with `glob` while preserving structured filter metadata.
141+
- `Grep` now accepts ripgrep-style `glob_case_insensitive`/`--glob-case-insensitive` plus no-override aliases, making ordinary `glob`/`--glob`/`-g` filters match paths case-insensitively while preserving `iglob` behavior.
141142
- `Grep` glob filtering now accepts ripgrep-style negated `!pattern` rules, including combinations with positive patterns, comma/whitespace splitting, and brace-expanded globs.
142143
- `Grep` now accepts `text`/`--text`/`-a` to search binary-extension files as text while preserving the default binary-extension skip behavior.
143144
- `Grep` now accepts `line_regexp`/`line-regexp`/`--line-regexp`/`-x` to require whole-line matches, with fixed-string and word-regexp precedence covered.

0 commit comments

Comments
 (0)