From ab9e499e8a6ad578af4cefef79268649685f9510 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Tue, 1 Nov 2022 12:31:25 +0900 Subject: Integrate email viewing to ranger --- ranger/.config/ranger/rifle.conf | 1 + ranger/.config/ranger/scope.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/ranger/.config/ranger/rifle.conf b/ranger/.config/ranger/rifle.conf index 34efc4f..b0a041c 100644 --- a/ranger/.config/ranger/rifle.conf +++ b/ranger/.config/ranger/rifle.conf @@ -150,6 +150,7 @@ ext pdf, has okular, X, flag f = okular -- "$@" ext pdf, has epdfview, X, flag f = epdfview -- "$@" ext pdf, has qpdfview, X, flag f = qpdfview "$@" +mime ^message, has mu, terminal = mu view "$(realpath "$1")" | "$PAGER" ext docx?, has catdoc, terminal = catdoc -- "$@" | "$PAGER" ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has gnumeric, X, flag f = gnumeric -- "$@" diff --git a/ranger/.config/ranger/scope.sh b/ranger/.config/ranger/scope.sh index a0fb2ec..a34f4d6 100755 --- a/ranger/.config/ranger/scope.sh +++ b/ranger/.config/ranger/scope.sh @@ -96,6 +96,9 @@ case "$extension" in esac case "$mimetype" in + message/*) + mu view "$(realpath "$path")" + exit 5;; # Syntax highlight for text files: text/* | */xml) if [ "$(tput colors)" -ge 256 ]; then -- cgit 1.4.1