-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathcortex.1
More file actions
303 lines (275 loc) · 5.67 KB
/
cortex.1
File metadata and controls
303 lines (275 loc) · 5.67 KB
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "CORTEX" "1" "July 2010" "" ""
.
.SH "NAME"
cortex \- reddit browser and monitor
.
.SH "SYNOPSIS"
cortex SUBREDDIT
.
.SH "DESCRIPTION"
Browse through reddit article lists from the cli\.
.
.SH "KEYBINDINGS"
.
.TP
\fBq\fR
Quit cortex and go back to the terminal\.
.
.TP
\fBr\fR
Update/Refresh the cortex listing from reddit\.
.
.TP
\fBm\fR
Toggle between full and minimal display mode\.
.
.TP
\fBo\fR, \fBReturn\fR
Open the currently selected link in the browser\.
.
.TP
\fBc\fR
Open the comments page for the currently selected link in the browser\.
.
.TP
\fBt\fR
Open both the currently selected link and the comments page in the browser\.
.
.TP
\fBi\fR
Open the reddit messages inbox in the browser\.
.
.TP
\fBh\fR
Jump to the frontpage listing\.
.
.TP
\fBs\fR
Prompt for a subreddit to display the listing for\.
.
.TP
\fBf\fR
Jump to the subreddit the currently selected article is in\. Alternatively, when already viewing a subreddit, jump back to the frontpage\.
.
.TP
\fBz\fR
Mark the currently selected link as read\.
.
.TP
\fBl\fR
Mark all articles in the list as read\.
.
.TP
\fB/\fR
Prompt for searching reddit\.
.
.TP
\fBUp\fR, \fBk\fR
Move one entry up the list\.
.
.TP
\fBDown\fR, \fBj\fR
Move one entry down the list\.
.
.TP
\fB0\fR, \fBg\fR, \fBHome\fR
Go to the first entry in the list\.
.
.TP
\fB$\fR, \fBG\fR, \fBEnd\fR
Go to the last entry in the list\.
.
.TP
\fBControl+B\fR, \fBPage Up\fR
Move one page up the list\.
.
.TP
\fBControl+F\fR, \fBPage Down\fR
Move one page down the list\.
.
.SH "CONFIGURATION"
See config\.example for an example configuration file to put in ~/\.cortex/config, the following options are available:
.
.SS "frontpage=http://reddit\.com/\.json"
.
.nf
Frontpage json url, substitute your personal one here if you want
cortex to display your own subreddit subscriptions\.
.
.fi
.
.SS "inbox="
.
.nf
Unread messages json url, put your personal one here if you want
cortex to display your unread message count\.
.
.fi
.
.SS "sort=\-read"
.
.nf
Field to sort the entries by\. A "\-" in front of the field name
indicates a reverse sort order\.
Not specifying a sort option will leave the ordering to reddit
(this usually means you will see the same order in cortex as
you would on your frontpage)\.
Some fields that can be sorted by:
created: Article creation time
title: Article title alphabetically
score: Article total score
read: Whether the article is marked read or not
.
.fi
.
.SS "title\-format= Cortex \-\- Reddit/{title}: {total} articles, {new} new"
.
.nf
Format used in the application title bar\.
Note: In python 2\.5, use %(VAR)s formatting\.
Available variables:
{title}: Title of the current subreddit or "Frontpage"\.
{total}: Total amount of articles in the listing\.
{new}: Amount of unread articles in the listing\.
.
.fi
.
.SS "entry\-format\-minimal= {title} %> {subreddit:<13} | {num_comments:4}"
.
.SS "entry\-format\-full= {title} %n [{score:4}] {read} {nsfw} %> {domain:30}"
.
.SS "{subreddit:<13} {num_comments:4} comments"
.
.nf
Formats used for entries in the list in minimal and full mode
respectively\.
Note: In python 2\.5, use %(VAR)s formatting\.
Available variables:
{title}: Article title\.
{subreddit}: Article subreddit\.
{num_comments}: Amount of comments the article has\.
{score}: Article score
{ups}: Article total upvotes
{downs}: Article total downvotes
{domain}: Article domain
{author}: Article submitter/author
{read}: "[New]" if the article is new, empty otherwise\.
{nsfw}: "NSFW" if the article in not safe for work, empty otherwise\.
You can use %> to indicate that the rest of the line should be aligned
to the right of the screen\.
In the full entry format, you can use one "%n" to indicate the separation
between the top and bottom lines in the listing\.
.
.fi
.
.SS "seen\-size=500"
.
.nf
Amount of articles to save seen/read status for\.
.
.fi
.
.SS "browser\-command="
.
.nf
Command to invoke the webbrowser\. The {0} will be replaced by the url
to open\. (Use %s in python 2\.5)
If left empty, cortex will try to autodetect the default browser for
the system\.
.
.fi
.
.SS "update\-interval=10"
.
.nf
Amount of minutes between automatic updates/refreshes\.
.
.fi
.
.SH "COLOR CONFIGURATION"
You can also change the colors used in the configuration, the colors available are: black, red, green, yellow, blue, magenta, cyan, white, default and their respective bright\- versions\.
.
.P
Colors are specified in (foreground, background) pairs, the available items to set the colors for are:
.
.SS "title=brightyellow,blue"
.
.nf
The titlebar on top of the interface\.
.
.fi
.
.SS "normal=white,black"
.
.nf
Normal text\.
.
.fi
.
.SS "entry=white,black"
.
.nf
The main part of an entry\.
.
.fi
.
.SS "entry\-data=yellow,black"
.
.nf
The right/data part of an entry\.
.
.fi
.
.SS "entry\-selected=brightyellow,magenta"
.
.nf
The main part of a selected entry\.
.
.fi
.
.SS "entry\-data\-selected=brightyellow,magenta"
.
.nf
The right/data part of a selected entry\.
.
.fi
.
.SS "entry\-bottom=green,black"
.
.nf
The main part of the bottom line of an entry in full mode\.
.
.fi
.
.SS "entry\-bottom\-selected=brightyellow,magenta"
.
.nf
The main part of the bottom line of a selected entry
in full mode\.
.
.fi
.
.SS "entry\-bottom\-data=yellow,black"
.
.nf
The right/data part of the bottom line of an entry in full mode\.
.
.fi
.
.SS "entry\-bottom\-data\-selected=brightyellow,magenta"
.
.nf
The right/data part of the bottom line of a selected entry in full
mode\.
.
.fi
.
.SS "messages=brightgreen,blue"
.
.nf
The unread messages count in the top right of the application\.
.
.fi