Comment less invocation
authorCase Duckworth <acdw@acdw.net>
Mon, 8 Jun 2020 20:20:14 +0000 (15:20 -0500)
committerCase Duckworth <acdw@acdw.net>
Mon, 8 Jun 2020 20:20:14 +0000 (15:20 -0500)
bollux

diff --git a/bollux b/bollux
index 76f4def..1cc1b4c 100755 (executable)
--- a/bollux
+++ b/bollux
@@ -610,12 +610,13 @@ display() { # display METADATA [TITLE]
        case "$mime" in
        text/*)
                set_title "$title${title:+ - }bollux"
-               less_cmd=(less -R)
+               less_cmd=(less -R) # render ANSI color escapes
                mklesskey "$BOLLUX_LESSKEY" && less_cmd+=(-k "$BOLLUX_LESSKEY")
                less_cmd+=(
-                       -Pm"$(less_prompt_escape "$BOLLUX_URL") - bollux$"
-                       -P='o\:open, g\:goto, [\:back, ]\:forward, r\:refresh$'
-                       -m
+                       -Pm"$(less_prompt_escape "$BOLLUX_URL") - bollux$" # 'status'line
+                       -P='o\:open, g\:goto, [\:back, ]\:forward, r\:refresh$' # helpline
+                       -m # start with statusline
+                       +k # float content to the top
                )
 
                local typeset