Take a note using a template.
$ ./kakitoru -f /tmp/test.md create
Press CTRL-D (^D) or send 'EOF' to terminate input...
This is the content of the note.
.
$ cat /tmp/test.md
# Sat Jun 09 23:01:48 PDT 2018
------------------------------
\```text
This is the content of the note.
\```
$ ./kakitoru -f /tmp/test.md create --comment 'This is a comment.' --header comment_usage --noprompt
$ head -5 /tmp/test.md
# comment_usage / Sat Jun 09 23:05:17 PDT 2018
------------------------------
* `comment:` This is a comment.
$ /usr/games/fortune | ./kakitoru create --dryrun
# Sat Jun 09 23:11:40 PDT 2018
------------------------------
\```text
Unknown person(s) stole the American flag from its pole in Etra Park sometime
between 3pm Jan 17 and 11:30 am Jan 20. The flag is described as red, white
and blue, having 50 stars and was valued at $40.
-- Windsor-Heights Herald "Police Blotter", Jan 28, 1987
\```
$ ./kakitoru -f /tmp/test.md create --header markdown --comment 'Markdown cheatsheet.' --urls https://help.github.com/articles/basic-writing-and-formatting-syntax https://guides.github.com/features/mastering-markdown --tags markdown github --noprompt
$ head -9 /tmp/test.md
# markdown / Sat Jun 09 23:16:01 PDT 2018
------------------------------
* `comment:` Markdown cheatsheet.
* `tags:` markdown github
* `urls:`
* [https://help.github.com/articles/basic-writing-and-formatting-syntax](https://help.github.com/articles/basic-writing-and-formatting-syntax)
* [https://guides.github.com/features/mastering-markdown](https://guides.github.com/features/mastering-markdown)
$ ./kakitoru -f /tmp/test.yaml create --templatefile templates/notes.yaml.j2 --url http://yaml.org https://en.wikipedia.org/wiki/YAML http://www.yamllint.com --tags yaml lint --noprompt --dryrun
-
header: 'Sun Jun 10 16:52:54 PDT 2018'
tags:
- yaml
- lint
urls:
- http://yaml.org
- https://en.wikipedia.org/wiki/YAML
- http://www.yamllint.com
$ ./kakitoru -v -f /tmp/test.txt create --templatefile templates/notes.txt.j2 --dryrun --tags ascii text --urls https://en.wikipedia.org/wiki/ASCII https://en.wikipedia.org/wiki/Plain_text --dryrun
Press CTRL-D (^D) or send 'EOF' to terminate input...
A single line text note.
.
# Sun Jun 10 16:58:30 PDT 2018
# Tags: ascii text
# URLs: https://en.wikipedia.org/wiki/ASCII https://en.wikipedia.org/wiki/Plain_text
------------------------------
A single line text note.
$ ./kakitoru -f /tmp/todo.txt create --templatefile templates/todo.txt.j2 --keyvalue due:2018-08-01 --dryrun
Press CTRL-D (^D) or send 'EOF' to terminate input...
Get all the things done!
.
# Thu Jun 21 19:17:07 PDT 2018
## Due: 2018-08-01
------------------------------
Get all the things done!
$ ./kakitoru -f /tmp/todo.test.txt create -tf templates/todo_oneliner.txt.j2 --keyvalue due:20180701 --comment 'Hi, this is what needs to be done.' --noprompt --dryrun --date $(date +%Y%m%d%H%M) --tags dontwait doitnow --autohashtag
- created:201806212043 comment:Hi, this is what needs to be done. #dontwait #doitnow due:20180701