From b50ac3096f5138870bd3bebb60e15b3f51e3e128 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Sat, 13 Feb 2021 09:20:54 -0500 Subject: [PATCH] Document quit keybinding Not sure why this wasn't documented before... --- lightcards/display.py | 5 +++-- man/lightcards.1 | 9 ++++++--- man/lightcards.1.md | 7 +++++-- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/lightcards/display.py b/lightcards/display.py index 50b7418..d69bde7 100644 --- a/lightcards/display.py +++ b/lightcards/display.py @@ -61,7 +61,7 @@ class Quit: class Help: - def __init__(self, outer, mlines=20, mcols=52): + def __init__(self, outer, mlines=21, mcols=52): """Initialize help screen""" self.outer = outer (self.win, self.panel) = panel_create(mlines, mcols) @@ -81,6 +81,7 @@ class Help: "H, ? open this screen", "m open the control menu", "1, 2, 3 switch views", + "q quit", "", "More information can be found in the man page, or", "by running `lightcards --help`.", @@ -104,7 +105,7 @@ class Help: def disp(self): """Display help screen""" (mlines, mcols) = self.outer.win.getmaxyx() - self.win.mvwin(int(mlines / 2) - 10, int(mcols / 2) - 25) + self.win.mvwin(int(mlines / 2) - 11, int(mcols / 2) - 25) self.panel.show() while True: diff --git a/man/lightcards.1 b/man/lightcards.1 index 74596ba..d46d287 100644 --- a/man/lightcards.1 +++ b/man/lightcards.1 @@ -1,6 +1,6 @@ .\" Automatically generated by Pandoc 2.11.3 .\" -.TH "lightcards" "1" "February 2021" "lightcards 0.6.0" "General Commands Manual" +.TH "lightcards" "1" "February 2021" "lightcards 0.7.0" "General Commands Manual" .hy .SH NAME .PP @@ -63,8 +63,11 @@ Open help screen \f[B]m\f[R] Open control menu .TP -\f[B]1\f[R], \f[B]2\f[R] -Switch views +\f[B]1\f[R], \f[B]2\f[R], \f[B]3\f[R] +Switch views between front first, back first, and both +.TP +\f[B]q\f[R] +Quit .SH INPUT FILE .PP Lightcards takes the first table from a valid Markdown or HTML file. diff --git a/man/lightcards.1.md b/man/lightcards.1.md index 615b857..8ae4f6c 100644 --- a/man/lightcards.1.md +++ b/man/lightcards.1.md @@ -64,8 +64,11 @@ lightcards \[options\] \[input file\] **m** : Open control menu -**1**, **2** -: Switch views +**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. -- 2.39.2