commit 906a7c3472773f62823f463742b81a40b3a08f2a
parent 8cbc2f578975e3840ee3822ce2f9b3b77ffede80
Author: Pavel Renev <an2qzavok@gmail.com>
Date: Sun, 10 Apr 2022 08:32:56 +0000
Handler: clear screen before printing plain text files
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/extra/Handler b/extra/Handler
@@ -29,7 +29,6 @@ fn lmarkdown {
cd `{basename -d $1}
history = (`{pwd}^/$fname $history)
forward = ()
- clear
Markdown $fname > $rroot/text
}
@@ -49,6 +48,9 @@ fn tryfile {
type=`{file -m $1}
switch ($type) {
case 'text/plain';
+ history = ($1 $history)
+ forward = ()
+ clear
cat $1
case *;
plumb $1