nnote is a quick and simple command line utility to take and keep track of notes with as little friction as possible. I usually have a terminal open, so for me the best way to do this is with a really short command. I typed in nn
and it didn't do anything. Now it does!
nn
will launch YOUR favorite editor, any of which should work as long as it's openable by a terminal command.
- using
nn new <filename>
with an existingfilename
will simply overwrite your previous note without warning. The next version will present a prompt asking the user whether they want to open the existing note or overwrite it. For now, usenn list
first if you're not sure if you're using an existing filename.
First, make sure you have a recent version of Node.js. I'm using const
, let
and arrow functions (=>
) from ES6 in this module, so whichever version you use has to support those at least. I'm on 6.2.2 as of this writing.
Then to install nn
itself:
npm install -g nnote
Then run nn
once to create the configuration file in your home directory, open that file and put in your desired settings and BAM! You'll never again forget an important thought in the year between opening Evernote and it finally letting you type.
The output of nn help
is below. Words between <these>
are values that you supply.
nn new <filename> => Creates a new note with the (optional) specified filename.
nn open <filename> => Opens the specified file, or creates it if it doesn't exist.
nn list => Prints a list of all notes in your note_path
nn set <param> <val> => Sets the specified parameter to the value in your config
nn peek <filename> => Prints the first two sentences of the specified file.
nn help => Well, here you are!