Remove support for --no-preview (#515)

This commit is contained in:
Denis Isidoro 2021-04-16 08:46:27 -03:00 committed by GitHub
parent 34aaada17f
commit 4eb74e7d23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 9 deletions

View file

@ -20,11 +20,7 @@ use anyhow::Result;
fn gen_core_finder_opts(config: &Config) -> Result<FinderOpts> {
let opts = FinderOpts {
preview: if config.no_preview {
None
} else {
Some(format!("{} preview {{}}", filesystem::exe_string()?))
},
preview: Some(format!("{} preview {{}}", filesystem::exe_string()?)),
overrides: config.fzf_overrides.clone(),
suggestion_type: SuggestionType::SnippetSelection,
query: if config.best_match {

View file

@ -103,10 +103,6 @@ pub struct Config {
#[clap(long)]
print: bool,
/// Hides preview window
#[clap(long)]
pub no_preview: bool,
/// Returns the best match
#[clap(long)]
pub best_match: bool,