Code Monkey home page Code Monkey logo

jotnote's Introduction

JotNote

A Unix Command-Line Tool to jot notes.

Table of Contents

Installation

From release

Download latest release, head to downloads directory and install using pip.

pip install JotNote-1.0.1.tar.gz

From repository

# 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

# Uninstall package
$ pip uninstall jotnote

# Remove data and configurations
$ rm ~/.jotnote -r

Commands

Add

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

Show

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.

Edit

Opens note with corresponding ID in your default text editor.

$ jotnote edit 1

Delete

Delete note with corresponding ID.

$ jotnote delete 1

Note 1 deleted

Configure

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

jotnote's People

Contributors

jonathangzzben avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.