make rg use smart case
this makes the search case insensitive by default but case sensitive when uppercase letters are used. I'd like something similar to vim where you can preface the query with `\C` to force case sensitivity but afaict rg doesnt have this, maybe we just do it ourselves?
This commit is contained in:
parent
e9a2ae79c4
commit
f0343bf2c9
1 changed files with 1 additions and 0 deletions
|
@ -120,6 +120,7 @@ const Process = struct {
|
||||||
// "--line-buffered",
|
// "--line-buffered",
|
||||||
"--fixed-strings",
|
"--fixed-strings",
|
||||||
"--json",
|
"--json",
|
||||||
|
"--smart-case",
|
||||||
self.query,
|
self.query,
|
||||||
});
|
});
|
||||||
self.sp = tp.subprocess.init(self.allocator, args, module_name, self.stdin_behavior) catch |e| return tp.exit_error(e, @errorReturnTrace());
|
self.sp = tp.subprocess.init(self.allocator, args, module_name, self.stdin_behavior) catch |e| return tp.exit_error(e, @errorReturnTrace());
|
||||||
|
|
Loading…
Add table
Reference in a new issue