Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #137 ![Demo](https://user-images.githubusercontent.com/3226564/67512211-b2e99a00-f66e-11e9-8ffe-09f30cb54599.png)
- Loading branch information
1 parent
70bf907
commit a0c5a62
Showing
13 changed files
with
253 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
% tar, zip, gzip, compression | ||
% compression | ||
|
||
# Create a tar containing files | ||
tar cf <name>.tar <files> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
% crontab, scheduling | ||
% crontab, schedule | ||
|
||
# List cron jobs | ||
crontab -l | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
An interactive cheatsheet tool for the command-line | ||
|
||
Usage: | ||
navi [command] [<args>...] [options] | ||
|
||
Commands: | ||
search <cmd> Search for cheatsheets on online repositories | ||
query <cmd> Pre-filter results | ||
best <cmd> <args>... Considers the best match | ||
widget <shell> Prints the path for the widget file to be sourced | ||
|
||
Options: | ||
--print Prevent script execution | ||
--path List of :-separated paths to look for cheats | ||
--no-interpolation Prevent argument interpolation | ||
--no-preview Hide command preview window | ||
--fzf-overrides Overrides for fzf commands [default: --with-nth 3,1,2 --exact] | ||
--col-widths Set column widths [default: 15,50,0] | ||
|
||
Environment variables: | ||
NAVI_PATH List of :-separated paths to look for cheats | ||
FZF_DEFAULT_OPTS Default fzf options (e.g. '--layout=reverse') | ||
|
||
Examples: | ||
navi # default behavior | ||
navi --print # doesn't execute the snippet | ||
navi --path '/some/dir:/other/dir' # uses custom cheats | ||
navi search docker # uses online data | ||
navi query git # filter results by "git" | ||
navi best 'sql create db' root mydb # uses a snippet as a CLI | ||
source "$(navi widget zsh)" # loads the zsh widget | ||
navi --col-widths 10,50,0 # limits the first two columns's width | ||
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 | ||
|
||
More info: | ||
|
||
search | ||
http://cheat.sh is used for cheatsheet retrieval | ||
please note that these cheatsheets may not work out of the box | ||
always check the preview window before executing commands! | ||
|
||
--col-widths | ||
the number is the percentage relative to the terminal width | ||
0 means that a column will be as wide as necessary | ||
|
||
fzf's --with-nth | ||
1 refers to the comment column; 2, snippet; 3, tag | ||
|
||
full docs | ||
please refer to the README at https://github.com/denisidoro/navi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.