diff --git a/.config/ranger/rifle.conf b/.config/ranger/rifle.conf index c9cf8d02..57fc8078 100644 --- a/.config/ranger/rifle.conf +++ b/.config/ranger/rifle.conf @@ -167,8 +167,9 @@ ext od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has libreoffice, X, flag f ext od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has soffice, X, flag f = soffice "$@" ext od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has ooffice, X, flag f = ooffice "$@" -ext docx?, has docx2txt.pl, terminal = docx2txt.pl "$@" - | "$PAGER" -ext docx?, has catdoc, terminal = catdoc "$@" | "$PAGER" +ext docx, has docx2txt.pl, terminal = docx2txt.pl "$@" - | "$PAGER" +ext doc, has antiword, terminal = antiword "$@" | "$PAGER" +ext doc, has catdoc, terminal = catdoc "$@" | "$PAGER" ext djvu, has zathura, X, flag f = zathura -- "$@" ext djvu, has evince, X, flag f = evince -- "$@" diff --git a/.config/ranger/scope.sh b/.config/ranger/scope.sh index d384a5fa..c13cf649 100755 --- a/.config/ranger/scope.sh +++ b/.config/ranger/scope.sh @@ -76,6 +76,7 @@ case "$extension" in try mediainfo "$path" && { dump | sed 's/ \+:/: /;' | trim | fmt -s -w $width; exit 4; } ;; doc) try antiword "$path" && { dump | trim | fmt -s -w $width; exit 0; } || exit 1;; + try catdoc "$path" && { dump | trim | fmt -s -w $width; exit 0; } docx) try docx2txt.pl "$path" - && { dump | trim | fmt -s -w $width; exit 0; } try catdoc "$path" && { dump | trim | fmt -s -w $width; exit 0; }