diff --git a/src/cmds/core.rs b/src/cmds/core.rs index 9623e70..0ecbf18 100644 --- a/src/cmds/core.rs +++ b/src/cmds/core.rs @@ -20,11 +20,7 @@ use anyhow::Result; fn gen_core_finder_opts(config: &Config) -> Result { 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 { diff --git a/src/structures/config.rs b/src/structures/config.rs index cb7f5a9..c3d5a02 100644 --- a/src/structures/config.rs +++ b/src/structures/config.rs @@ -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,