-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.man
174 lines (161 loc) · 2.55 KB
/
page.man
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
.\" Manpage for note.
.TH man 1 "30 Nov 2023" "%%VERSION%%" "note man page"
.SH NAME
note \- Simple notes manager
.SH SYNOPSIS
.B note
.I <SUBCOMMAND>
[ARGUMENTS]...
.SH DESCRIPTION
CLI Notes manager.
.SH SUBCOMMANDS
.PP
\fBinit [-p PATH] [-r REMOTE]\fR
.RS 4
Initialize new note storage in PATH(default=~/.notes), if REMOTE specified, pulls notes from there
.RE
.PP
\fBedit|e (PATH_TO_NOTE)\fR
.RS 4
Creates or edit existing note with $VISUAL, after save changes
.RE
.PP
\fBtoday\fR
.RS 4
Creates or edit note with name like daily/06-01-24.md
.RE
.PP
\fBlast\fR
.RS 4
Edit last opened note
.RE
.PP
\fBfedit|fe\fR
.RS 4
Find note by fzf and edit with $VISUAL
.RE
.PP
\fBfgrep|fg\fR
.RS 4
Find note by content with fzf and edit with $VISUAL
.RE
.PP
\fBsync\fR
.RS 4
Pull changes from remote note storage. In case of conflict, accepts yours changes.
.RE
.PP
\fBgit ...\fR
.RS 4
Proxy commands to git
.RE
.PP
\fBlist|ls [PATH_TO_NOTE]...\fR
.RS 4
List notes
.RE
.PP
\fBshow|cat (PATH_TO_NOTE)\fR
.RS 4
Render note in terminal by bat
.RE
.PP
\fBmv (PATH_TO_NOTE) (PATH_TO_NEW_NOTE)\fR
.RS 4
Rename note
.RE
.PP
\fBln (PATH_TO_NOTE) (PATH_TO_LINK)\fR
.RS 4
Create symbolic link
.RE
.PP
\fBrm (PATH_TO_NOTE)\fR
.RS 4
reletes note and commits
.RE
.PP
\fBexport\fR
.RS 4
Export notes in tar.gz format, redirects to stdout (use note export > notes.tar.gz)
.RE
.PP
\fBtree [PATH_TO_SUBDIR]\fR
.RS 4
Show tree of notes in storage or subdirs
.RE
.PP
\fBcomplete (command)\fR
.RS 4
Autocomplete helper
.RS 4
.B Subcommands
.PP
.RS 4
\fBedit|show|render\fR
.RS 4
Print all stored notes without sub directories
.RE
.PP
\fBtree|mkdir\fR
.RS 4
Print only sub directories
.RE
.PP
\fBmv|rm|ls\fR
.RS 4
Print all stored notes with sub directories
.RE
.PP
\fBbash\fR
.RS 4
Print subcommands in bash complete format
.RE
.PP
\fBzsh\fR
.RS 4
Print subcommands in zsh complete format
.SH EXAMPLES
$ note init -r ssh://remote/notes-storage
$ note edit someNote.md
$ note show someNote.md
.SH OPTIONAL DEPENDENCIES
python-grip, bat
.SH EXIT STATUS
0 if OK
1 General error
2 Invalid argument (etc. note not exists, ...)
3 Invalid option
4 Invalid state (etc. not initialized, ...)
.SH ENVIRONMENT
.B VISUAL
The name of the editor
.PP
.B EDITOR
Alternative editor. Used if
.BR VISUAL
not defined
.PP
.B NOTEPAGER
Previewer for notes. Used for
.BR note
.BR show
command
.PP
.B PAGER
Alternative previewer for notes. Used for
.BR note
.BR show
command if
.BR NOTEPAGER
not defined
.PP
.B DATE_FMT
Used for
.BR note
.BR today
command to format daily note name
.PP
.SH AUTHOR
Kan (thek4n@yandex.ru)
https://github.com/thek4n