Small markdown note taking CLI app playing nicely with your favorite editor and other CLI tools
MismatchCategoryError
was added as error typenotes
with no argument now shows notes ls -o
if any note existslist --full
output bufferingAllow to disable Git, editor or pager by setting empty to the corresponding environment variable.
For example, following will disable pager on notes ls
export NOTES_CLI_PAGER=
list
command's long output using pager command. Default pager command is less
and it can be customizable via $NOTES_CLI_PAGER
list --oneline
. Category only field was removed and now category is unified with relative path. First field is not changed and category can be retrieved from the relative path. So this should not be breaking changelist --full
by number of lines, not bytes...
to the end of truncated note body in list --full
--no-edit
to new
command for an editor plugin/
like blog/myown
or blog/dev.to
.git
. notes-foo
in $PATH
is called on notes foo
with passing arguments and path to notes
executable..template.md
at root of notes-cli home directory tree. It is always used as template for creating a new note if category-specific .template.md
is not found.-->
(closing comment), notes
considers it is hiding metadata and automatically insert corresponding <!--
before metadataCategory
and Categories
types are added and CollectCategories()
factory function is added--sort created
was opposite. Now it is in descending order hence head -1
can take the latest notenotes new
$EDITOR
environment variable when $NOTES_CLI_EDITOR
is not set$NOTES_CLI_EDITOR
to have options such as "vim -g"
. Previously only command and path could be specified like "code"
or "/path/to/emacs"
<!-- ... -->
commentselfupdate
commandTo avoid above fixed bug in earlier version, please use full-path of executable when you update.
$ ~/.go/bin/notes selfupdate
notes new
---
) after metadatascripts/
directory--color-always
selfupdate
man
manualBy 2., you can add <hr/>
after metadata to separate your list from metadata:
Shopping
=======
- Category: memo
- Tags:
- Created: 2018-11-6T20:36:00+09:00
----------
- Milk
- Egg
- Meat
- Tomato
--edit
to list
subcommand
selfupdate
subcommand