mirror of
https://github.com/denisidoro/navi
synced 2024-11-22 03:23:05 +00:00
Remove support for --no-preview (#515)
This commit is contained in:
parent
34aaada17f
commit
4eb74e7d23
2 changed files with 1 additions and 9 deletions
|
@ -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 {
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue