Support multi-word arguments in FZF overrides (#765)

Fixes #752
This commit is contained in:
Denis Isidoro 2022-07-28 20:17:43 -03:00 committed by GitHub
parent 81cd721b76
commit d68c4437a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,9 +142,8 @@ impl FinderChoice {
} }
if let Some(o) = opts.overrides { if let Some(o) = opts.overrides {
o.as_str() shellwords::split(&o)?
.split(' ') .into_iter()
.map(|s| s.to_string())
.filter(|s| !s.is_empty()) .filter(|s| !s.is_empty())
.for_each(|s| { .for_each(|s| {
command.arg(s); command.arg(s);