forgetful
is a small command line tool for your notes/cheat sheets. Inspiered by Chris Lane's cheatsheet but wanted something a little different and something that can automatically delete temporary notes that are old since I tend to create lots of textfiles with temporary notes from phone calls and whatnot.
go get github.com/gummiboll/forgetful
and copy bin/forgetful to your $PATH. Or download the latest binary release
forgetful creates ~/.forgetful/forgetful.db (sqllite3) on the first run. Editor defaults to vim
if $EDITOR is not set.
command | short | description | optional arguments |
---|---|---|---|
add | a | Adds a note | -p (from contents of clipboard) -t (temporary note, expires afer 24h) |
edit | e | Edit a note | |
delete | d | Deletes a note | |
info | i | Shows information about a note | |
read | r | Reads a note | |
rename | mv | Renames a note | |
list | l | List notes | If phrase is specified, filter results on that phrase |
search | s | Search for notes | |
share | Shares a note publicaly on hastebin | ||
keep | k | Mark a temporary note as permanent | |
unkeep | u | Mark a permanent note as temporary | |
help | h | Shows help |