-
Notifications
You must be signed in to change notification settings - Fork 82
/
notes.1
63 lines (60 loc) · 2.41 KB
/
notes.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
.TH NOTES 1
.SH NAME
notes \ - Simple delightful note taking, with more unix and less lock-in.
.SH SYNOPSIS
.B notes
\fICOMMAND\fR
.SH DESCRIPTION
.B notes
is a simple command line tool that makes note taking simpler.
When run without a command, the help screen will appear and will offer a brief
description of availible commands.
\fBnotes\fR will run the default editor for your distribution when opening a
note. You can set $EDITOR in your shell to override it.
\fBnotes\fR uses a configuration file located at \fB~/.config/notes/config\fR.
This file overrides any settings in your rc file.
.SH COMMANDS
.TP
.BR new ", " n " " "\fR[\fB\-t\fR] " \fR[\fBTEMPLATE\fR] \fR[\fINAME\fR]
Open your text editor with a new note, with the given name.
If no name is given, a quick note will be created with an auto-generated
name. If the \-t option is provided, the specified TEMPLATE will be used for the new note.
.TP
.BR find ", " f " " \fR[\fIPATTERN\fR]
Searches for notes using the given pattern, returning all matches. If no
pattern is given, returns every note.
.TP
.BR grep ", " g " " \fIPATTERN\fR
Searches the contents of all notes for the given pattern. Returns all matches.
.TP
.BR search ", " s " " \fIPATTERN\fR
Combination of find and grep.
.TP
.BR ls " " \fR[\fIDIRECTORY\fR]
Lists all notes within \fIDIRECTORY\fR. Lists contents of $NOTES_DIRECTORY if
no path is provided.
.TP
.BR open ", " o
Opens $NOTES_DIRECTORY in your file explorer.
.TP
.BR open ", " o " "\fINAME\fR
Opens note \fINAME\fR using your configured editor. \fINAME\fR can either be an
absolute path or relative to $NOTES_DIRECTORY.
.TP
.BR append ", " a " "\fINAME\fR " [" \fIMESSAGE\fR]
Appends \fINAME\fR with text \fIMESSAGE\fR if given. If no \fIMESSAGE\fR is
defined, it will be taken from stdin. Stdin input does not work
in interactive mode (The input must be piped in).
.TP
.BR rm " "\fR[\fB\-r\fR | \fB\-\-recursive\fR] " "\fINAME\fR
Removes \fINAME\fR. If \-r or \-\-recursive is given, folders will be removed.
.TP
.BR cat " " \fINAME\fR
Display note \fINAME\fR. \fINAME\fR can either be an absolute path or relative
to $NOTES_DIRECTORY.
.SH AUTHORS
Notes was created by Tim Perry, who is still the maintainer. Numerous
contributions have been submitted via pull requests on github.
<\fBhttp://github.com/pimterry/notes\fR>.
If you have a clone of notes.git, the output of \fBgit-shortlog\fR(1) and
\fBgit-blame\fR(1) can show you the authors for specific parts of the project.