- install Alire
- pull repo
alr build
syntax:
jott <title> <tag1,tag2,tagN> <"body text">ex:
jott new-title coding,random "lorem ipsum"jott some-title examples "
This is a
multiline jott\!"jott
syntax:
jott <single-query>or:
jott -t <single-query>ex:
jott codingjott -t codingsyntax:
jott -b <query>ex:
jott -b "this is a substring in a jott's body text"You can also perform strict searches where a match only occurs if the first param matches a substring in the jott's title or tags and the second param matches a substring in the body. The order of flags doesn't matter.
syntax:
jott -tb <title or tag search> <body search>ex:
jott -tb html "class=\"custom-class\""-t- title/tag search
-b- body search
-i- case insensitive search
-c- add character count column to output
Jotts are currently saved as markdown in the jotts/ directory in this project. The location of this should be configurable - possibly by utilizing jott-store.dat.
- add help command
- get the
nthjott path from a search resultjott <some-query> | sed -n '2 p'
- get the last jott path from a search result
jott <some-query> | sed -n '$p'
- print the contents of results
jott <some-query> | xargs cat