mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
Use arg
This commit is contained in:
parent
3f7ec86145
commit
441410c1f0
2 changed files with 2 additions and 2 deletions
2
yazi-plugin/src/external/fd.rs
vendored
2
yazi-plugin/src/external/fd.rs
vendored
|
|
@ -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)
|
||||
|
|
|
|||
2
yazi-plugin/src/external/rg.rs
vendored
2
yazi-plugin/src/external/rg.rs
vendored
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue