Skip to main content

tnote-cli

A simple notes Command line tool, because I really got tired of either:

A. going from the terminal into another app to write something down for later or B. Forgetting which configuration file is where and not having a convenient place where all my notes could be kept

Plus I really just wanted a project to work on.

Installation

pip install tnote-cli

Usage

Using tnote is pretty simple when it really comes down to it as there is only one command that has several options.

Index

The index of all the notes you've created can be accessed by $ tnote with no arguments. At any point you can use $ tn as it is the same because who has time for all those extra keystrokes.

$ tnote 
|-------------------------INDEX-------------------------|


|-------------------------RECENT------------------------|
 Note ID: todo
 Name: todo.md
 Path: /Users/username/.tnote/notes/todo.md
|-------------------------------------------------------|
    
            _________________________________
            

|-------------------------------------------------------|
 Note ID: todo
 Name: todo.md
 Path: /Users/username/.tnote/notes/todo.md
|-------------------------------------------------------|

At first your index obviously won't look like this but create a note and you'll be good. Up at the top there it will show you want is your most recently edited note which can be accessed using the $ -r flag.

Creating and Editing Notes

To create a new note you need only type in a name for a note like so $ tn EXAMPLE and a note will be created and you'll begin editing it. You can also specify editing with the $ -e flag. The editor used will be the $EDITOR environment variable but it can also be changed in the config at ~/.tnote.json

$ tnote -e Example
$ tn Example

View

Tnote was designed with using markdown in mind as it is how I frequently take notes as such if you wish to render it from your terminal use the view flag.

$ tnote -v Example

Moving and Renaming

If you wish to rename a file simply do so by passing the same path other than the filename to the move option:

$ tnote Example -m ~/tnote/notes/new_name.md 

otherwise just pass a fully qualified path with filename to move the file:

$ tnote Example -m ~/Example.md

Delete

To permenantly delete a note:

$ tnote -d Example

Change ID

IF you want to change the Id you use to access notes you do so as shown below

$ tnote Example -i new-id

to access this note in the future you'll use new-id

Execute

From time to time I like to have some simple scripts on-hand for quick access so I have allowed a way to simply execute from my notes

Execute a file that has permissions:

tnote Script -x

Give a file permission (chmod) and execute it:

tnote Script -xx

Metadata

Release files for tnote-cli 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tnote-cli 0.0.6
File Size Uploaded
tnote-cli-0.0.6.tar.gz 7.8 kB Details

Release files / tnote-cli-0.0.6.tar.gz

Download URL tnote-cli-0.0.6.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
518ec2769bea603d8d680f79e7ca068a8c140b1ca48afda18ec9e5533116efa3
BLAKE2b-256 checksum
How to use checksums
bf43620b650a208b13dd71f75e43535920d41004be19674f2662d970cb4ec350
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release history Release notifications | RSS feed

This release

0.0.6 This release

1 release file

0.0.5

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page