From 69b566d8e401cab0094b74b08c251efed87d3444 Mon Sep 17 00:00:00 2001 From: phiresky Date: Tue, 11 Jun 2019 16:06:23 +0200 Subject: [PATCH] smart case by default --- src/bin/rga.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/bin/rga.rs b/src/bin/rga.rs index a9bdaf9..4166c7f 100644 --- a/src/bin/rga.rs +++ b/src/bin/rga.rs @@ -49,8 +49,16 @@ fn main() -> Fallible<()> { let exe = std::env::current_exe().expect("Could not get executable location"); 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") - .arg("--no-line-number") + .args(rg_args) .arg("--pre") .arg(preproc_exe) .arg("--pre-glob")