A Unix Command-Line Tool to jot notes.
Download latest release, head to downloads directory and install using pip.
pip install JotNote-1.0.1.tar.gz
# Update setuptools
$ pip install --upgrade setuptools
# Clone repository
$ git clone https://github.com/JonathanGzzBen/JotNote.git
# Install package
$ (cd JotNote && pip install .)
# Write your notes
$ jotnote
[jotnote show]
No notes found.
# Uninstall package
$ pip uninstall jotnote
# Remove data and configurations
$ rm ~/.jotnote -r
This will create a note with given title. You don't need to enclose it with quotes.
$ jotnote add This is the title
{
"id": 1,
"title": "This is the title"
}
You can immediately define title and content, separating it with a .
$ jotnote add This is the title. And this is the content
{
"id": 1,
"title": "This is the title.",
"content": "And this is the content"
}
You can also execute it without any parameter to write your note in your default text editor.
$ jotnote add
If you save and quit in your text editor after writing this:
This is the title.
And this the content
You will get this:
{
"id": 1,
"title": "This is the title.",
"content": "And this is the content"
}
Displays your notes, you can change the maximum number of notes displayed and the sort method using the configure
command.
$ jotnote show
+---+------------------------------------+
| | Title |
+---+------------------------------------+
| 2 | Second note |
| 1 | This is the title of my first note |
+---+------------------------------------+
This is the default command, you can also use:
$ jotnote
[jotnote show]
+---+------------------------------------+
| | Title |
+---+------------------------------------+
| 2 | Second note |
| 1 | This is the title of my first note |
+---+------------------------------------+
You can directly print the contents of a note by passing the Id to the show
command.
$ jotnote show 1
This is the title of my first note.
And this is the content.
Opens note with corresponding ID in your default text editor.
$ jotnote edit 1
Delete note with corresponding ID.
$ jotnote delete 1
Note 1 deleted
Check or modify your configurations.
$ jotnote configure --help
Usage: jotnote configure [OPTIONS]
Options:
-l, --limit INTEGER Limit number of notes displayed.
-o, --orderby [modification|creation]
--help Show this message and exit.
If you pass no options, your current configurations will be printed.
$ jotnote configure
Configuration Value
--------------- --------
limit 5
orderby creation