From: Siraaj Khandkar Date: Wed, 15 Jun 2022 20:56:42 +0000 (-0700) Subject: Print help in wallpaper_review start X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=e2dd436b59bf5053dd3962526cb50b7aa59110d3;p=khome.git Print help in wallpaper_review start --- diff --git a/home/bin/wallpaper_review b/home/bin/wallpaper_review index 5c6966a..66d7e4f 100755 --- a/home/bin/wallpaper_review +++ b/home/bin/wallpaper_review @@ -134,6 +134,26 @@ paths_preview() { done } +help_print() { + cat <&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 }