Skip to content

Commit

Permalink
Fix skim preview-window (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
denisidoro authored Mar 30, 2020
1 parent 69ee79b commit d09fc85
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "navi"
version = "2.4.1"
version = "2.5.0"
authors = ["Denis Isidoro <[email protected]>"]
edition = "2018"
description = "An interactive cheatsheet tool for the command-line"
Expand Down
2 changes: 1 addition & 1 deletion src/finder/skim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl Finder for SkimFinder {

skim_command.args(&[
"--preview-window",
"up:2",
"up:3",
"--with-nth",
"1,2,3",
"--delimiter",
Expand Down
2 changes: 1 addition & 1 deletion src/structures/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pub mod cheat;
pub mod error;
pub mod fnv;
pub mod finder;
pub mod fnv;
pub mod option;
6 changes: 3 additions & 3 deletions src/structures/option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ fn parse_finder(src: &str) -> Result<FinderChoice, Error> {
navi repo add denisidoro/cheats # imports cheats from github.com/denisidoro/cheats
source <(navi widget zsh) # loads the zsh widget
navi --finder 'skim' # set which finder is supposed to be used (fzf [default] / skim)
navi --fzf-overrides ' --with-nth 1,2' # shows only the comment and tag columns
navi --fzf-overrides ' --nth 1,2' # search will consider only the first two columns
navi --fzf-overrides ' --no-exact' # looser search algorithm"#)]
navi --fzf-overrides '--with-nth 1,2' # shows only the comment and tag columns
navi --fzf-overrides '--nth 1,2' # search will consider only the first two columns
navi --fzf-overrides '--no-exact' # looser search algorithm"#)]
#[structopt(setting = AppSettings::ColorAuto)]
#[structopt(setting = AppSettings::ColoredHelp)]
#[structopt(setting = AppSettings::AllowLeadingHyphen)]
Expand Down

0 comments on commit d09fc85

Please sign in to comment.