Add preview with ls to fzf
This commit is contained in:
parent
1a6fcbfbe4
commit
6cacb40b1b
|
|
@ -16,7 +16,7 @@ impl Fzf {
|
||||||
if multiple {
|
if multiple {
|
||||||
command.arg("--multi");
|
command.arg("--multi");
|
||||||
}
|
}
|
||||||
command.arg("--exit-0").arg("-n2..").stdin(Stdio::piped()).stdout(Stdio::piped());
|
command.arg("--exit-0").arg("--preview='ls -al --color --human-readable --group-directories-first --file-type {2..}'").arg("-n2..").stdin(Stdio::piped()).stdout(Stdio::piped());
|
||||||
if let Some(fzf_opts) = config::fzf_opts() {
|
if let Some(fzf_opts) = config::fzf_opts() {
|
||||||
command.env("FZF_DEFAULT_OPTS", fzf_opts);
|
command.env("FZF_DEFAULT_OPTS", fzf_opts);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue