% memo % % 10 August 2018 # NAME memo # SYNOPSIS `memo [arguments]` # DESCRIPTION A tool to memorize stuff. It saves files `$MEMO_DIR` (`$HOME/memo` by default). The structure is `$MEMO_DIR//memo.md` You can also copy files in the topic folder as well. We call the folder `$MEMO_DIR/` a 'topic folder'. # COMMANDS `add [text]` : Adds text to the `memo.md` in the topic folder. If text is not given it will read from stdin. `rm ` : Remove `$MEMO_DIR/topic` folder with all its content. `copy ` : Copy a file to the topic folder. `search ` : Search for a term in `$MEMO_DIR` using `ack`. `show ` : Shows `memo.md` in the topic folder. Also shows a list of all files in the topic folder. `edit ` : Opens your favorite editor to edit the memo topic. `list` : Prints a list of all topics. `git ` : Run a git command in `$MEMO_DIR`. Once `$MEMO_DIR` is a git repository, all memo commands create commits. # CONFIGURATION `$MEMO_DIR` : holds the folder where to store the memo files. Default is `$HOME/memo`. `$EDITOR` : Your favorite editor. Must be set for the edit command. # EXAMPLE Append the string "A search-engine" to the `memo.md` file in the topic "google". $ memo add google A search-engine Appends the content of `www.google.com` to the `memo.md` file the topic "google". $ curl www.google.com | memo add google Copy the "Invoice.pdf" file to the "lawsuit" topic. $ memo copy lawsuit ~/Downloads/Invoice.pdf Make `$MEMO_DIR` a git repository. $ memo git init