Skip to content

Commit e75664a

Browse files
committed
Add shorthand aliases to usage help
1 parent e47ff19 commit e75664a

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

notes

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,15 @@ usage() {
8585
notes is a command line note taking tool.
8686
8787
Usage:
88-
notes new <name> # Create a new note
89-
notes find [pattern] # Search notes by filename and path
90-
notes grep <pattern> # Search notes by content
91-
notes open # Open your notes directory
92-
notes open <name> # Open a note for editing by full name
93-
echo <name> | notes open # Open all note filenames piped in
94-
notes --help # Print this usage information
88+
notes new|n <name> # Create a new note
89+
notes find|f [pattern] # Search notes by filename and path
90+
notes grep|g <pattern> # Search notes by content
91+
notes open|o # Open your notes directory
92+
notes open|o <name> # Open a note for editing by full name
93+
echo <name> | notes open|o # Open all note filenames piped in
94+
notes --help # Print this usage information
95+
96+
'command|c' means you can use 'command' or the equivalent shorthand alias 'c'
9597
9698
Your notes directory is $notes_dir. You can
9799
override this by setting \$NOTES_DIRECTORY to your preferred path.

0 commit comments

Comments
 (0)