Skip to content

A command-line note taking app built with Ada!

Notifications You must be signed in to change notification settings

SevanBadal/jott

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jott

A command-line note taking app built with Ada!

setup

  • install Alire
  • pull repo
  • alr build

Create a jott

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\!"

List your jotts

jott

Search jotts by title or tag

syntax:

jott <single-query>

or:

jott -t <single-query>

ex:

jott coding
jott -t coding

Search jots by body text

syntax:

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\""

Flags

  • -t
    • title/tag search
  • -b
    • body search
  • -i
    • case insensitive search
  • -c
    • add character count column to output

Notes

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.

Todos

  • add help command

Useful Bash Commands

  • get the nth jott path from a search result
    jott <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

About

A command-line note taking app built with Ada!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages