From 296768277a6591a6b85e65dbf09eb88f97ffd712 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 10 Jul 2023 10:06:58 -0300 Subject: Rifle: adds koreader and expand okular support --- config.dot/ranger/rifle.conf.link | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'config.dot') diff --git a/config.dot/ranger/rifle.conf.link b/config.dot/ranger/rifle.conf.link index 45beca5..6ac6ea9 100644 --- a/config.dot/ranger/rifle.conf.link +++ b/config.dot/ranger/rifle.conf.link @@ -146,6 +146,7 @@ ext pdf, has atril, X, flag f = atril -- "$@" ext pdf, has okular, X, flag f = okular -- "$@" ext pdf, has epdfview, X, flag f = epdfview -- "$@" ext pdf, has qpdfview, X, flag f = qpdfview "$@" +ext pdf, has koreader, X, flag f = koreader "$@" ext docx?, has catdoc, terminal = catdoc -- "$@" | "$PAGER" @@ -155,10 +156,12 @@ ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has libreoffice, X, f ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has soffice, X, flag f = soffice "$@" ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has ooffice, X, flag f = ooffice "$@" -ext djvu, has djview, X, flag f = djview -- "$@" -ext djvu, has zathura, X, flag f = zathura -- "$@" -ext djvu, has evince, X, flag f = evince -- "$@" -ext djvu, has atril, X, flag f = atril -- "$@" +ext djvu, has djview, X, flag f = djview -- "$@" +ext djvu, has zathura, X, flag f = zathura -- "$@" +ext djvu, has evince, X, flag f = evince -- "$@" +ext djvu, has atril, X, flag f = atril -- "$@" +ext djvu, has okular, X, flag f = okular -- "$@" +ext djvu, has koreader, X, flag f = koreader "$@" #------------------------------------------- # Image Viewing: @@ -197,7 +200,11 @@ label wallpaper, number 14, mime ^image, X = feh --bg-fill "$1" # EPUB #------------------------------------------- ext epub, has fbreader, X, flag f = okular "$@" +ext epub, has okular, X, flag f = okular -- "$@" +ext epub, has koreader, X, flag f = koreader "$@" ext mobi, has fbreader, X, flag f = okular "$@" +ext mobi, has okular, X, flag f = okular -- "$@" +ext mobi, has koreader, X, flag f = koreader "$@" # Define the editor for non-text files + pager as last action !mime ^text, !ext xml|csv|tex|py|pl|rb|js|sh|php = ask -- cgit v1.2.3