From 6423ece891056b15163803d22b77dfbc1d8efd05 Mon Sep 17 00:00:00 2001 From: Stacy Harper Date: Tue, 20 Apr 2021 10:54:58 +0200 Subject: [PATCH] Add less|mless appmenus Very usefull when displaying multiple files. It is used by mless, a basic mblaze command to show emails. Signed-off-by: Stacy Harper Signed-off-by: Anjandev Momi --- scripts/core/sxmo_appmenu.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/core/sxmo_appmenu.sh b/scripts/core/sxmo_appmenu.sh index 594b4f6..a4edc13 100755 --- a/scripts/core/sxmo_appmenu.sh +++ b/scripts/core/sxmo_appmenu.sh @@ -296,6 +296,17 @@ programchoicesinit() { $icon_mnu St menu ^ 0 ^ sxmo_appmenu.sh st-256color " WINNAME=ncmpcpp + elif echo "$WMNAME" | grep -i -E -w "(less|mless)"; then + #less + CHOICES=" + $icon_arr Page next ^ 1 ^ typeenter ':n' + $icon_arl Page previous ^ 1 ^ typeenter ':p' + $icon_zmi Zoom in ^ 1 ^ key Ctrl+Shift+Prior + $icon_zmo Zoom out ^ 1 ^ key Ctrl+Shift+Next + $icon_aru Scroll up ^ 1 ^ key Ctrl+Shift+b + $icon_ard Scroll down ^ 1 ^ key Ctrl+Shift+f + " + WINNAME=less elif echo "$WMNAME" | grep -i -w "weechat"; then #weechat CHOICES="