summary refs log tree commit diff stats
diff options
context:
space:
mode:
authornfnty <git@nfnty.se>2017-01-29 18:31:53 +0100
committernfnty <git@nfnty.se>2017-01-29 18:31:53 +0100
commitae99c2c9e71797c2777d4441db451f0e2ac967cc (patch)
treee34f6920d594400deab1e5f15d63673c328d6607
parenta2159459e22f24ef48910987187739c99e08d532 (diff)
downloadranger-ae99c2c9e71797c2777d4441db451f0e2ac967cc.tar.gz
config: Use `atool` directly
-rw-r--r--README.md2
-rwxr-xr-xranger/config/commands.py2
-rw-r--r--ranger/config/rifle.conf8
3 files changed, 6 insertions, 6 deletions
diff --git a/README.md b/README.md
index d1a1da25..051212ce 100644
--- a/README.md
+++ b/README.md
@@ -73,7 +73,7 @@ Optional, for enhanced file previews (with `scope.sh`):
 
 * `img2txt` (from `caca-utils`) for ASCII-art image previews
 * `highlight` or `pygmentize` for syntax highlighting of code
-* `atool`, `acat`, `bsdtar` and/or `unrar` for previews of archives
+* `atool`, `bsdtar` and/or `unrar` for previews of archives
 * `lynx`, `w3m` or `elinks` for previews of html pages
 * `pdftotext` for pdf previews
 * `transmission-show` for viewing bit-torrent information
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index f86dad2b..13df6bd9 100755
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -262,7 +262,7 @@ class open_with(Command):
 
         examples:
         "mplayer f 1" => ("mplayer", "f", 1)
-        "aunpack 4" => ("aunpack", "", 4)
+        "atool 4" => ("atool", "", 4)
         "p" => ("", "p", 0)
         "" => None
         """
diff --git a/ranger/config/rifle.conf b/ranger/config/rifle.conf
index 0b812192..5e38465a 100644
--- a/ranger/config/rifle.conf
+++ b/ranger/config/rifle.conf
@@ -185,10 +185,10 @@ ext xcf,                    X, flag f = gimp -- "$@"
 # avoid password prompt by providing empty password
 ext 7z, has 7z = 7z -p l "$@" | "$PAGER"
 # This requires atool
-ext ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz,     has als     = als --each -- "$@" | "$PAGER"
-ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has als     = als --each -- "$@" | "$PAGER"
-ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz,  has aunpack = aunpack --each -- "$@"
-ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has aunpack = aunpack --each -- "$@"
+ext ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz,     has atool = atool --list --each -- "$@" | "$PAGER"
+ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has atool = atool --list --each -- "$@" | "$PAGER"
+ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz,  has atool = atool --extract --each -- "$@"
+ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has atool = atool --extract --each -- "$@"
 
 # Fallback:
 ext tar|gz, has tar = tar vvtf "$@" | "$PAGER"