Skip to content

Commit f2329a3

Browse files
chriszaratesxyazi
andauthored
fix: remove ignore options from rg and fd search (#1043)
Co-authored-by: sxyazi <[email protected]>
1 parent 50ae6eb commit f2329a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

yazi-plugin/src/external/fd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub fn fd(opt: FdOpt) -> Result<UnboundedReceiver<File>> {
1616
.arg("--base-directory")
1717
.arg(&opt.cwd)
1818
.arg("--regex")
19-
.args(if opt.hidden { ["--hidden", "--no-ignore"] } else { ["--no-hidden", "--ignore"] })
19+
.arg(if opt.hidden { "--hidden" } else { "--no-hidden" })
2020
.args(opt.args)
2121
.arg(opt.subject)
2222
.kill_on_drop(true)

yazi-plugin/src/external/rg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub fn rg(opt: RgOpt) -> Result<UnboundedReceiver<File>> {
1515
let mut child = Command::new("rg")
1616
.current_dir(&opt.cwd)
1717
.args(["--color=never", "--files-with-matches", "--smart-case"])
18-
.args(if opt.hidden { ["--hidden", "--no-ignore"] } else { ["--no-hidden", "--ignore"] })
18+
.arg(if opt.hidden { "--hidden" } else { "--no-hidden" })
1919
.args(opt.args)
2020
.arg(opt.subject)
2121
.kill_on_drop(true)

0 commit comments

Comments
 (0)