X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=man%2Flightcards.1.md;h=24e3cd0129b179d63ac6da26f805333eb8b60cee;hb=cc885692662df0e7c92e23e42fc86ace4684eefd;hp=42259ec619f3992311ff63158af43008a28b9df2;hpb=09185557a67a1216b9c61d7a7055f347632df07d;p=lightcards.git diff --git a/man/lightcards.1.md b/man/lightcards.1.md index 42259ec..24e3cd0 100644 --- a/man/lightcards.1.md +++ b/man/lightcards.1.md @@ -1,35 +1,102 @@ -% lightcards(1) 0.0.0 -% Armaan Bhojwani -% January 2021 +--- +title: lightcards +section: 1 +header: General Commands Manual +footer: VERSION_HERE +date: February 2021 +--- # NAME -Lightcards - simple terminal flashcards. +lightcards - terminal flashcards from Markdown # SYNOPSIS -lightcards [[options]] [[input file]] +lightcards \[options\] \[input file\] # DESCRIPTION -**lightcards** is a Python script that reads data from a markdown table, and creates flashcards from them. +**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. # OPTIONS -**-h**, **--help** +## Generic Program Information +**-h**, **\--help** : Show a help message and exit -**-v**, **--version** -: Print version +**-v**, **\--version** +: Print version and exit -# EXIT VALUES +## Startup options +**-a**, **\--alphabetize** +: Alphabetize card order + +**-p**, **\--purge** +: Purge cache for chosen set + +**-r**, **\--reverse** +: Reverse card order + +**-s**, **\--shuffle** +: Shuffle card order + +**-V** \[1-3\], **\--view** \[1-3\] +: Specify startup view + +**-c** \[config file\], **\--config** \[config file\] +: Specify a custom config file + +# KEYS +**l**, **right** +: Next card + +**h**, **left** +: Previous card + +**j**, **k**, **up**, **down** +: Flip card + +**i**, **/** +: Star card + +**0**, **^**, **home** +: Go to start of deck + +**$**, **end** +: Go to end of deck + +**H**, **?** +: Open help screen + +**m** +: Open control menu + +**1**, **2**, **3** +: Switch views between front first, back first, and both + +**q** +: Quit + +# INPUT FILE +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. + +# EXIT STATUS **0** : Success **1** -: Cannot find input file +: Parse error **2** : Invalid option -# BUGS, PATCHES +**3** +: Curses error + +**4** +: Config error + +# SEE ALSO + **lightcards-config(5)** + +# BUGS https://lists.sr.ht/~armaan/public-inbox # COPYRIGHT -Copyright 2021 Armaan Bhojwani . MIT License +Copyright 2021 Armaan Bhojwani , MIT License.