Skip to content

Commit

Permalink
Remove support for --no-preview (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
denisidoro committed Apr 16, 2021
1 parent 34aaada commit 4eb74e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
6 changes: 1 addition & 5 deletions src/cmds/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 0 additions & 4 deletions src/structures/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4eb74e7

Please sign in to comment.