about summary refs log tree commit diff stats
path: root/DESIGN
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-04-21 01:47:57 +0100
committerJames Booth <boothj5@gmail.com>2013-04-21 01:47:57 +0100
commite151ce707d822f4e7258353b4f94e154b123b4ad (patch)
tree10c41f922cddff437bff8bbd1aa6a2c405c46b3e /DESIGN
parent8a280b43cac0e84cede288a1816cd0ee2324782b (diff)
downloadprofani-tty-e151ce707d822f4e7258353b4f94e154b123b4ad.tar.gz
Moved remaining static functions to console module
Diffstat (limited to 'DESIGN')
0 files changed, 0 insertions, 0 deletions
the previous revision' href='/andinus/draco/blame/draco.1?h=v0.3.0&id=61266c6e9a39a75875531dfb24852b6e9eef6f1a'>^
48668b0 ^







5a117ad ^
3e7484c ^
5a117ad ^

d37383d ^
3e7484c ^

5a117ad ^
d37383d ^

48668b0 ^


5a117ad ^



79a9c99 ^

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







                                                     
         




                                                                      
   

                                                                   
   





                                                                 







                                                                      
         
                                                                 

                                                                      
   

                                                                    
   

                                                              


                                                                     



                                                                      

                                 
.Dd $Mdocdate: November 19 2020 $
.Dt DRACO 1
.Os
.Sh NAME
.Nm draco
.Nd a script to convert reddit thread to Org document
.Sh SYNOPSIS
.Nm draco
.Op Fl dv
.Ar <url>
.Sh DESCRIPTION
.Nm
is a script to convert reddit thread to Org document. It accepts a url
& prints the Org document to STDOUT.
.Pp
It'll also print comments along with their replies. It's limited by
the reddit API.
.Pp
The options are as follows:
.Bl -tag -width Ds
.It Fl d
Turn on debug messages. Debug messages will be printed to STDERR.
.It Fl v
Print version.
.It Fl h
Print this help.
.Pp
.Sh ENVIRONMENT VARIABLES
.Bl -tag -width Ds
.It FETCH_ALL
Fetch all comments. This will make multiple HTTP calls to reddit. This
doesn't fetch *all* the comments.
.Sh NOTES
Draco will add 2 spaces before every new line. Comments/Posts may
contain `*' at the start of line & that confuses Org. Org might
interpret it as a new heading so we add a space before every new line.
.Pp
All text will be wrapped at 76 characters, including 2 spaces before
every new line the maximum number of columns becomes 78.
.Pp
The date of archive is saved under :PROPERTIES: of the post as
:ARCHIVE_DATE:.
.Pp
Total number of top level comments is saved under :PROPERTIES: of the
post as :TOTAL_TOP_LEVEL_COMMENTS:.
.Sh WHY?
I reference things from the web in my Journal & don't want those links
to break so I save them locally. Previously I used to manually archive
the whole thread, this automates it.
.Sh AUTHOR
.An Andinus Aq Mt andinus@nand.sh