summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--packages/opencode/src/tool/grep.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/opencode/src/tool/grep.ts b/packages/opencode/src/tool/grep.ts
index 3faeb6fb4..cc654e339 100644
--- a/packages/opencode/src/tool/grep.ts
+++ b/packages/opencode/src/tool/grep.ts
@@ -20,12 +20,11 @@ export const GrepTool = Tool.define("grep", {
const searchPath = params.path || Instance.directory
const rgPath = await Ripgrep.filepath()
- const args = ["-n", params.pattern]
+ const args = ["-nH", "--field-match-separator=|", params.pattern]
if (params.include) {
args.push("--glob", params.include)
}
args.push(searchPath)
- args.push("--field-match-separator=|")
const proc = Bun.spawn([rgPath, ...args], {
stdout: "pipe",