mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit 7a27586bcbf6ef4330b8bc5b969bafa339293e77
parent 525233811c0f7c9358c5b12c6f7ceecf5bfe7d96
Author: Christian Neukirchen <chneukirchen@gmail.com>
Date:   Fri, 29 Jul 2016 12:07:33 +0200

mless: R to toggle raw message

Diffstat:
mless | 12+++++++++++-
mlesskey.example | 1+
2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/mless b/mless @@ -46,7 +46,13 @@ if [ "$1" = --filter ]; then exit fi - mshow "$2" | colormsg + if [ $MLESS_RAW -eq 0 ]; then + mshow "$2" | colormsg + else + mseq -r $2 + echo + cat "$(mseq -r $2)" + fi exit $? fi @@ -71,6 +77,7 @@ fi nl=" " +export MLESS_RAW=0 while :; do [ -f $HOME/.mless ] && export LESSKEY=$HOME/.mless LESSOPEN="|$0 --filter %s" \ @@ -87,5 +94,8 @@ while :; do mflag -S . mseq -f : | mseq -S mseq -C + + ;; + 82) # R toggle raw mode + MLESS_RAW=$((1-$MLESS_RAW)) esac done diff --git a/mlesskey.example b/mlesskey.example @@ -7,5 +7,6 @@ Q quit \1 S noaction E//scan\n ` noaction E\#\n N quit N +R quit R k quit k d quit d