]> git.armaanb.net Git - lightcards.git/commitdiff
Document quit keybinding
authorArmaan Bhojwani <me@armaanb.net>
Sat, 13 Feb 2021 14:20:54 +0000 (09:20 -0500)
committerArmaan Bhojwani <me@armaanb.net>
Sat, 13 Feb 2021 14:20:54 +0000 (09:20 -0500)
Not sure why this wasn't documented before...

lightcards/display.py
man/lightcards.1
man/lightcards.1.md

index 50b741808b14dc0ed18ed417c528322ac83cb2f1..d69bde7ab8926a4b6cbf4d1672e08ba0cb22cab5 100644 (file)
@@ -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:
index 74596ba54fcc1d2edc8575db3eb72b760d966260..d46d287a7dd7b21a8d47241971c32361c2096331 100644 (file)
@@ -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.
index 615b857ca58b65ac24b4b2c170908ef1e77e6dcb..8ae4f6c4636314c952f924bcd156153a6609685e 100644 (file)
@@ -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.