Page 1 of 1

Extraction?

Posted: Sat Apr 29, 2017 7:40 am
by d0ublezer0
How to extract files from archive, instead of entering into it?
Shift+Enter open it in finder, extracted.
But i expect "extract to folder"

Re: Extraction?

Posted: Wed May 03, 2017 2:05 am
by mike
Currently this operation is not implemented, the only route is to open the archive and to copy it's contents to somewhere.
In theory I can add a shortcut to this action consisting of two steps (opening and copying) and wire it to some menu item.
BTW, by "extract to folder" you mean a current folder, right?

Re: Extraction?

Posted: Sat May 06, 2017 7:46 pm
by d0ublezer0
mike, yes,
extract to subfolder named as archive name in the current folder.

Re: Extraction?

Posted: Sun Jan 05, 2020 4:35 am
by marvelph
I want the extraction operation.

Re: Extraction?

Posted: Mon Jan 06, 2020 9:32 pm
by JayB
It works with SHIFT+ENTER. The macOS default is that it will open with Archive Utility, but in my case archives are mapped to The Unarchiver. Extracted to folder named after the archive's original filename. The only addition would be to do it all in Nimble Commander, but I'm dealing with so many archive types, not just zip, but rar, 7z, tbz, gz etc., the best solution is probably still to open it with a third-party unarchiver… unless you want include support for all kinds of archive types. You should also note that The Unarchiver comes with its own CLI, so it's easy to use a shell script as a Nimble Commander tool, and assign a keyboard shortcut, e.g.:

Code: Select all

#!/bin/bash
for archive_path in "$@"
do
   parent_dir=$(dirname "$archive_path")
   unar -q -r -d "$archive_path" -o "$parent_dir" || osascript -e 'beep' &>/dev/null
done
https://theunarchiver.com/command-line