mirror of
https://github.com/denisidoro/navi
synced 2024-11-21 19:13:07 +00:00
Document all environment variables (#512)
This commit is contained in:
parent
649832bc41
commit
34aaada17f
1 changed files with 24 additions and 16 deletions
|
@ -65,23 +65,31 @@ impl FromStr for Info {
|
|||
#[clap(after_help = r#"MORE INFO:
|
||||
Please refer to https://github.com/denisidoro/navi
|
||||
|
||||
MORE ENVIRONMENT VARIABLES:
|
||||
NAVI_TAG_WIDTH # tag column width as window integer %
|
||||
NAVI_COMMENT_WIDTH # comment column width as window integer %
|
||||
NAVI_SHELL # shell used in shell outs
|
||||
|
||||
EXAMPLES:
|
||||
navi # default behavior
|
||||
navi --print # doesn't execute the snippet
|
||||
navi --tldr docker # search for docker cheatsheets using tldr
|
||||
navi --cheatsh docker # search for docker cheatsheets using cheatsh
|
||||
navi --path '/some/dir:/other/dir' # use .cheat files from custom paths
|
||||
navi --query git # filter results by "git"
|
||||
navi --query 'create db' --best-match # autoselect the snippet that best matches a query
|
||||
name=mydb navi --query 'create db' --best-match # same, but set the value for the <name> variable
|
||||
navi repo add denisidoro/cheats # import cheats from a git repository
|
||||
eval "$(navi widget zsh)" # load the zsh widget
|
||||
navi --finder 'skim' # set skim as finder, instead of fzf
|
||||
navi --fzf-overrides '--with-nth 1,2' # show only the comment and tag columns
|
||||
navi --fzf-overrides '--no-select-1' # prevent autoselection in case of single line
|
||||
navi --fzf-overrides-var '--no-select-1' # same, but for variable selection
|
||||
navi --fzf-overrides '--nth 1,2' # only consider the first two columns for search
|
||||
navi --fzf-overrides '--no-exact' # use looser search algorithm"#)]
|
||||
navi # default behavior
|
||||
navi --print # doesn't execute the snippet
|
||||
navi --tldr docker # search for docker cheatsheets using tldr
|
||||
navi --cheatsh docker # search for docker cheatsheets using cheatsh
|
||||
navi --path '/some/dir:/other/dir' # use .cheat files from custom paths
|
||||
navi --query git # filter results by "git"
|
||||
navi --query 'create db' --best-match # autoselect the snippet that best matches a query
|
||||
db=my navi --query 'create db' --best-match # same, but set the value for the <name> variable
|
||||
navi repo add denisidoro/cheats # import cheats from a git repository
|
||||
eval "$(navi widget zsh)" # load the zsh widget
|
||||
navi --finder 'skim' # set skim as finder, instead of fzf
|
||||
navi --fzf-overrides '--with-nth 1,2' # show only the comment and tag columns
|
||||
navi --fzf-overrides '--no-select-1' # prevent autoselection in case of single line
|
||||
navi --fzf-overrides-var '--no-select-1' # same, but for variable selection
|
||||
navi --fzf-overrides '--nth 1,2' # only consider the first two columns for search
|
||||
navi --fzf-overrides '--no-exact' # use looser search algorithm
|
||||
NAVI_SHELL=dash navi # use dash in shell outs
|
||||
NAVI_TAG_WIDTH=30 NAVI_COMMENT_WIDTH=40 navi # customize column widths
|
||||
navi --tag-rules='git,!checkout' # show non-checkout git snippets only"#)]
|
||||
#[clap(setting = AppSettings::ColorAuto)]
|
||||
#[clap(setting = AppSettings::ColoredHelp)]
|
||||
#[clap(setting = AppSettings::AllowLeadingHyphen)]
|
||||
|
|
Loading…
Reference in a new issue