fix: remove ignore options from rg and fd search (#1043)

Co-authored-by: sxyazi <sxyazi@gmail.com>
This commit is contained in:
Chris Zarate 2024-05-16 07:02:37 -04:00 committed by GitHub
parent 50ae6ebe39
commit f2329a3b35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ pub fn fd(opt: FdOpt) -> Result<UnboundedReceiver<File>> {
.arg("--base-directory")
.arg(&opt.cwd)
.arg("--regex")
.args(if opt.hidden { ["--hidden", "--no-ignore"] } else { ["--no-hidden", "--ignore"] })
.arg(if opt.hidden { "--hidden" } else { "--no-hidden" })
.args(opt.args)
.arg(opt.subject)
.kill_on_drop(true)

View file

@ -15,7 +15,7 @@ pub fn rg(opt: RgOpt) -> Result<UnboundedReceiver<File>> {
let mut child = Command::new("rg")
.current_dir(&opt.cwd)
.args(["--color=never", "--files-with-matches", "--smart-case"])
.args(if opt.hidden { ["--hidden", "--no-ignore"] } else { ["--no-hidden", "--ignore"] })
.arg(if opt.hidden { "--hidden" } else { "--no-hidden" })
.args(opt.args)
.arg(opt.subject)
.kill_on_drop(true)