]> git.armaanb.net Git - lightcards.git/blob - man/lightcards.1.md
Change flip cards option to a view
[lightcards.git] / man / lightcards.1.md
1 ---
2 title: lightcards
3 section: 1
4 header: General Commands Manual
5 footer: VERSION_HERE
6 date: February 2021
7 ---
8
9 # NAME
10 lightcards - terminal flashcards from Markdown
11
12 # SYNOPSIS
13 lightcards \[options\] \[input file\]
14
15 # DESCRIPTION
16 **lightcards** is a Python program that reads data from a two column Markdown (and by extension, HTML) table in the **input file**, and displays flashcards from their contents.
17
18 # OPTIONS
19 ## Generic Program Information
20 **-h**, **--help**
21 : Show a help message and exit
22
23 **-v**, **--version**
24 : Print version and exit
25
26 ## Stack sorting
27 **-a**, **--alphabetize**
28 : Alphabetize card order
29
30 **-p**, **--purge**
31 : Purge cache for chosen set
32
33 **-r**, **--reverse**
34 : Reverse card order
35
36 **-s**, **--shuffle**
37 : Shuffle card order
38
39 # KEYS
40 **l**, **right**
41 : Next card
42
43 **h**, **left**
44 : Previous card
45
46 **j**, **k**, **up**, **down**
47 : Flip card
48
49 **i**, **/**
50 : Star card
51
52 **0**, **^**, **home**
53 : Go to start of deck
54
55 **$**, **end**
56 : Go to end of deck
57
58 **H**, **?**
59 : Open help screen
60
61 **e**
62 : Open input file in $EDITOR
63
64 **m**
65 : Open control menu
66
67 **1**, **2**
68 : Switch views
69
70 # INPUT FILE
71 Lightcards takes the first table from a valid Markdown or HTML file. Each row is a card, and the two columns are the front and back.
72
73 # EXIT STATUS
74 **0**
75 : Success
76
77 **1**
78 : Parse error
79
80 **2**
81 : Invalid option
82
83 # BUGS
84 https://lists.sr.ht/~armaan/public-inbox
85
86 # COPYRIGHT
87 Copyright 2021 Armaan Bhojwani <me@armaanb.net>, MIT License.