mirror of
https://github.com/FliegendeWurst/ripgrep-all.git
synced 2024-11-24 12:24:56 +00:00
smart case by default
This commit is contained in:
parent
c27bc4edf2
commit
69b566d8e4
@ -49,8 +49,16 @@ fn main() -> Fallible<()> {
|
|||||||
|
|
||||||
let exe = std::env::current_exe().expect("Could not get executable location");
|
let exe = std::env::current_exe().expect("Could not get executable location");
|
||||||
let preproc_exe = exe.with_file_name("rga-preproc");
|
let preproc_exe = exe.with_file_name("rga-preproc");
|
||||||
|
|
||||||
|
let rg_args = vec![
|
||||||
|
"--no-line-number",
|
||||||
|
// smart case by default because within weird files
|
||||||
|
// we probably can't really trust casing anyways
|
||||||
|
"--smart-case",
|
||||||
|
];
|
||||||
|
|
||||||
let mut child = Command::new("rg")
|
let mut child = Command::new("rg")
|
||||||
.arg("--no-line-number")
|
.args(rg_args)
|
||||||
.arg("--pre")
|
.arg("--pre")
|
||||||
.arg(preproc_exe)
|
.arg(preproc_exe)
|
||||||
.arg("--pre-glob")
|
.arg("--pre-glob")
|
||||||
|
Loading…
Reference in New Issue
Block a user