This commit is contained in:
sxyazi 2024-05-16 19:00:36 +08:00
parent 3f7ec86145
commit 441410c1f0
No known key found for this signature in database
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"] } else { ["--no-hidden"] })
.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"] } else { ["--no-hidden"] })
.arg(if opt.hidden { "--hidden" } else { "--no-hidden" })
.args(opt.args)
.arg(opt.subject)
.kill_on_drop(true)