memo/doc/memo.1

92 lines
2.1 KiB
Groff
Raw Permalink Normal View History

2019-07-12 19:37:21 +02:00
.\" Automatically generated by Pandoc 2.7.1
2018-12-31 02:50:13 +01:00
.\"
.TH "memo" "1" "10 August 2018" "doc" "Linux Reference Manual"
.hy
.SH NAME
.PP
memo
.SH SYNOPSIS
.PP
2019-07-12 19:37:21 +02:00
\f[C]memo <command> [arguments]\f[R]
2018-12-31 02:50:13 +01:00
.SH DESCRIPTION
.PP
A tool to memorize stuff.
2019-07-12 19:37:21 +02:00
It saves files \f[C]$MEMO_DIR\f[R] (\f[C]$HOME/memo\f[R] by default).
The structure is \f[C]$MEMO_DIR/<topic>/memo.md\f[R] You can also copy
2018-12-31 02:50:13 +01:00
files in the topic folder as well.
.PP
2019-07-12 19:37:21 +02:00
We call the folder \f[C]$MEMO_DIR/<topic>\f[R] a `topic folder'.
2018-12-31 02:50:13 +01:00
.SH COMMANDS
.TP
2019-07-12 19:37:21 +02:00
.B \f[C]add <topic> [text]\f[R]
Adds text to the \f[C]memo.md\f[R] in the topic folder.
2018-12-31 02:50:13 +01:00
If text is not given it will read from stdin.
.TP
2019-07-12 19:37:21 +02:00
.B \f[C]rm <topic>\f[R]
Remove \f[C]$MEMO_DIR/topic\f[R] folder with all its content.
2018-12-31 02:50:13 +01:00
.TP
2019-07-12 19:37:21 +02:00
.B \f[C]copy <topic> <file-to-copy>\f[R]
2018-12-31 02:50:13 +01:00
Copy a file to the topic folder.
.TP
2019-07-12 19:37:21 +02:00
.B \f[C]search <term-to-search>\f[R]
Search for a term in \f[C]$MEMO_DIR\f[R] using \f[C]ack\f[R].
2018-12-31 02:50:13 +01:00
.TP
2019-07-12 19:37:21 +02:00
.B \f[C]show <topic>\f[R]
Shows \f[C]memo.md\f[R] in the topic folder.
2018-12-31 02:50:13 +01:00
Also shows a list of all files in the topic folder.
.TP
2019-07-12 19:37:21 +02:00
.B \f[C]edit <topic>\f[R]
2018-12-31 02:50:13 +01:00
Opens your favorite editor to edit the memo topic.
.TP
2019-07-12 19:37:21 +02:00
.B \f[C]list\f[R]
2018-12-31 02:50:13 +01:00
Prints a list of all topics.
.TP
2019-07-12 19:37:21 +02:00
.B \f[C]git <command>\f[R]
Run a git command in \f[C]$MEMO_DIR\f[R].
Once \f[C]$MEMO_DIR\f[R] is a git repository, all memo commands create
2018-12-31 02:50:13 +01:00
commits.
.SH CONFIGURATION
.TP
2019-07-12 19:37:21 +02:00
.B \f[C]$MEMO_DIR\f[R]
2018-12-31 02:50:13 +01:00
holds the folder where to store the memo files.
2019-07-12 19:37:21 +02:00
Default is \f[C]$HOME/memo\f[R].
2018-12-31 02:50:13 +01:00
.TP
2019-07-12 19:37:21 +02:00
.B \f[C]$EDITOR\f[R]
2018-12-31 02:50:13 +01:00
Your favorite editor.
Must be set for the edit command.
.SH EXAMPLE
.PP
2019-07-12 19:37:21 +02:00
Append the string \[lq]A search-engine\[rq] to the \f[C]memo.md\f[R]
2018-12-31 02:50:13 +01:00
file in the topic \[lq]google\[rq].
.IP
.nf
\f[C]
2019-07-12 19:37:21 +02:00
$ memo add google A search-engine
\f[R]
2018-12-31 02:50:13 +01:00
.fi
.PP
2019-07-12 19:37:21 +02:00
Appends the content of \f[C]www.google.com\f[R] to the \f[C]memo.md\f[R]
2018-12-31 02:50:13 +01:00
file the topic \[lq]google\[rq].
.IP
.nf
\f[C]
2019-07-12 19:37:21 +02:00
$ curl www.google.com | memo add google
\f[R]
2018-12-31 02:50:13 +01:00
.fi
.PP
Copy the \[lq]Invoice.pdf\[rq] file to the \[lq]lawsuit\[rq] topic.
.IP
.nf
\f[C]
2019-07-12 19:37:21 +02:00
$ memo copy lawsuit \[ti]/Downloads/Invoice.pdf
\f[R]
2018-12-31 02:50:13 +01:00
.fi
.PP
2019-07-12 19:37:21 +02:00
Make \f[C]$MEMO_DIR\f[R] a git repository.
2018-12-31 02:50:13 +01:00
.IP
.nf
\f[C]
2019-07-12 19:37:21 +02:00
$ memo git init
\f[R]
2018-12-31 02:50:13 +01:00
.fi