summaryrefslogtreecommitdiff
path: root/bibleplan.1
blob: 849e5ca308a431ce3a82895e8b07195ebefc3c7d (plain)
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
.TH BIBLEPLAN 1
.SH NAME
bibleplan \- Follow a Bible-reading plan with kjv(1).

.SH SYNOPSIS
.PP
.B bibleplan [date] [-l, --list date] [-f, --file] [-e, --edit] [-m, --make year] [-h, --help]

.SH DESCRIPTION
.PP
.B bibleplan 
allows you to follow a Bible-reading plan with
.B kjv(1),
right in your terminal!
.PP
The reading plan is a plain text file, located by default at
/usr/local/share/bibleplan/plan.txt.
Each day of assigned reading is represented by a line beginning with
a date in DDMMM format (e.g. 06JAN), followed by Bible passages delimited
by semicolons.
.B bibleplan
parses this text file, finds the line containing the current day's reading,
extracts the relevant passages, and sends them one at a time to
.B kjv(1).

.SH OPTIONS
.TP
.B bibleplan [date]
If assigned reading exists for [date], open it in kjv(1). If [date] is not
given, uses the current date. Dates must be written in DDMMM format, but
padding with zeros is not required. For example: 01JAN, 01jan, 1JAN, 1jan
are all valid dates.

.TP
.B bibleplan -l, --list [date]
Show the assigned reading for [date] instead of sending the passages to
.B kjv(1).
If [date] is not given, uses the current date.

.TP
.B bibleplan -f, --file
Show the plan file that
.B bibleplan
is using. This file can be changed by editing the filedetails() function.

.TP
.B bibleplan -e, --edit
Opens the current plan file in $EDITOR. The default plan file is
.br
/usr/local/share/bibleplan/plan.txt.

.TP
.B bibleplan -m, --make [year]
Makes a new Bible-reading plan based on the 5-day-per-week template
located by default at
/usr/local/share/bibleplan/5daytemplate.txt
and emits it to stdout. To write the new plan to a file, you could
do something like:
.br
$ bibleplan --make 2021 > 2021.txt

.TP
.B bibleplan -h, --help
Prints an abbreviated help screen to stdout.

.SH FILES
.TP
.B /usr/local/share/bibleplan/plan.txt
Contains the current reading plan.
.B bibleplan
reads this file to look up passages for a given date.
.TP
.B /usr/local/share/bibleplan/5daytemplate.txt
Contains the passages for the standard 5 day per week reading plan without
any dates. When the
.B --make
option is passed,
.B bibleplan
uses the
.B paste(1)
utility to affix dates to the beginning of each line in the plan.

.SH BUGS
Please report any bugs via the author's email: <ray@raypatrick.xyz> and ensure you mention
.B bibleplan
somewhere in the subject line.

.SH AUTHOR
Written by Ray Patrick <ray@raypatrick.xyz> in 2020.

.SH LICENSE
GPLv3

.SH SEE ALSO
.B kjv(1), paste(1), date(1)