diff --git a/yazi-plugin/src/external/fd.rs b/yazi-plugin/src/external/fd.rs index 30c4261e..74aaca15 100644 --- a/yazi-plugin/src/external/fd.rs +++ b/yazi-plugin/src/external/fd.rs @@ -16,7 +16,7 @@ pub fn fd(opt: FdOpt) -> Result> { .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) diff --git a/yazi-plugin/src/external/rg.rs b/yazi-plugin/src/external/rg.rs index d5b4b63c..7ff71f2c 100644 --- a/yazi-plugin/src/external/rg.rs +++ b/yazi-plugin/src/external/rg.rs @@ -15,7 +15,7 @@ pub fn rg(opt: RgOpt) -> Result> { 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)