Add preview with ls to fzf

This commit is contained in:
Janek 2021-07-06 13:25:06 +02:00 committed by GitHub
parent 1a6fcbfbe4
commit 6cacb40b1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ impl Fzf {
if multiple {
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() {
command.env("FZF_DEFAULT_OPTS", fzf_opts);
}