-
-
Notifications
You must be signed in to change notification settings - Fork 428
Description
While writing #2389, I found an issue with the w_try_unzip
command not working here on my PC (maybe it's another issue to be opened), so I ended up using w_try_7z
. However, I realized that it's quite unusual in other verbs to use w_try_7z
to extract ZIP
files. So, my suggestion is to create a new function: w_try_extract
, where 7z
should be tried as the first command (since 7z
is fast, efficient and supports several other types of formats, such as ZIP
and RAR
, in addition to 7Z
itself), then the unzip
command and then the unrar
command (similar to how the w_download
function works with aria2
, curl
, wget
, etc.).
I think this approach is much better than relying on the w_try_{7z,unzip,unrar}
functions directly when writing verbs and people can choose to keep only one unarchiver installed.