Print help in wallpaper_review start
authorSiraaj Khandkar <siraaj@khandkar.net>
Wed, 15 Jun 2022 20:56:42 +0000 (13:56 -0700)
committerSiraaj Khandkar <siraaj@khandkar.net>
Wed, 15 Jun 2022 20:56:42 +0000 (13:56 -0700)
home/bin/wallpaper_review

index 5c6966a..66d7e4f 100755 (executable)
@@ -134,6 +134,26 @@ paths_preview() {
     done
 }
 
+help_print() {
+    cat <<EOF >&2
+
+Navigation help:
+
+key | action
+----+----------------------------------------------
+ q  |  quit
+ h  |  move back
+ l  |  move forward
+ f  |  add to favorites
+ r  |  remove from favorites
+ s  |  set current
+ z  |  fuzzy search for next file path
+ :N |  goto Nth image
+----+----------------------------------------------
+
+EOF
+}
+
 main() {
     case "$1" in
         f | fav) paths_set_from_favs;;
@@ -145,7 +165,7 @@ main() {
             printf 'Error: unknown source "%s"\n' "$1" >&2
             exit 1;;
     esac
-
+    help_print
     paths_preview
 }
 
This page took 0.023114 seconds and 4 git commands to generate.