Extraction?

Questions, glitches, bugs and crashes
Post Reply
d0ublezer0
Posts: 91
Joined: Tue Jun 28, 2016 6:17 pm
Location: NN, Russia

Extraction?

Post by d0ublezer0 » Sat Apr 29, 2017 7:40 am

How to extract files from archive, instead of entering into it?
Shift+Enter open it in finder, extracted.
But i expect "extract to folder"

User avatar
mike
Posts: 815
Joined: Thu Jul 16, 2015 5:35 am
Location: Exeter, UK

Re: Extraction?

Post by mike » Wed May 03, 2017 2:05 am

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?

d0ublezer0
Posts: 91
Joined: Tue Jun 28, 2016 6:17 pm
Location: NN, Russia

Re: Extraction?

Post by d0ublezer0 » Sat May 06, 2017 7:46 pm

mike, yes,
extract to subfolder named as archive name in the current folder.

marvelph
Posts: 6
Joined: Fri Oct 30, 2015 10:28 am

Re: Extraction?

Post by marvelph » Sun Jan 05, 2020 4:35 am

I want the extraction operation.

JayB
Posts: 143
Joined: Sun Jan 08, 2017 4:38 pm

Re: Extraction?

Post by JayB » Mon Jan 06, 2020 9:32 pm

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

Post Reply