summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Isidoro <denisidoro@users.noreply.github.com>2021-04-16 08:46:27 -0300
committerGitHub <noreply@github.com>2021-04-16 08:46:27 -0300
commit4eb74e7d23b36a02017600879c659fdb062a7e19 (patch)
treefa955f454e063f44ef6aa7b802f0763a91027a2e
parent34aaada17f3cf612f53c0cb4c8d19fd6c20c910c (diff)
Remove support for --no-preview (#515)
-rw-r--r--src/cmds/core.rs6
-rw-r--r--src/structures/config.rs4
2 files changed, 1 insertions, 9 deletions
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<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 {
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,