Installation
gem install notes_cli
Getting started
Tell notes_cli where your notes will be stored.
notes --notes_folder path/to/where/you/will/store/notes
Define your first workspace.
notes -w workspace_name
DSL
Notes folder
Where you will store all notes, including your workspaces and notebooks as the top layers.
Workspace
Where you will store notebooks.
Notebook
Where you will store notes.
Example
Basic case scenario, where:
notes_folderis where we decided to store notespersonal_projectsandworkare workspacessocial_media_appsandfeaturesare notebookstwitter_clone.mdandrequirements.mdare notes
notes_folder/
├── personal_projects
│ └── social_media_apps
│ └── twitter_clone.md
└── work
└── features
└── voice_chat
└── requirements.md
Usage
Check
Checking which workspace you are currently in
notes
'Current workspace is ...'
Create
Create a note in the current workspace
notes -n notebook note_title
Creating a note in a nested notebook
notes -n path/to/notebook note_title
# e.g
notes -n saving_the_world/doing_charity_work list_of_charities
# will produce
notes_folder/
├── personal_projects
│ ├── saving_the_world
│ │ └── doing_charity_work
│ │ └── list_of_charities.md
│ └── social_media_apps
│ └── twitter_clone.md
└── work
└── features
└── voice_chat
└── requirements.md
Delete
Delete a note
notes -d notebook note_title
List
Listing all notebooks in your workspace
notes -l .
Listing all notes in a given notebook
notes -l notebook
Switch
Switching workspace
notes -w workspace_name
Switching workspace and creating a note there
notes -w workspace_name -n notebook note_title