Page 2 of 2

Re: Extracting a Zip file to a folder via CTB

Posted: 04 Jul 2014 10:02
by bdeshi
Stef123 wrote:won't help my situation (I extract small subsets only, need to get a preview instead of dumping thousands of files on disk every time)
Here's a simple, fully native XY solution. Extracts selected files from zip to current path.

Code: Select all

 $file = "<curitem>";
 if getpathcomponent($file,ext) != 'zip' {end 1;}
 $lst = inputselect("select files to extract",replace(zip_list($file),<tab>),,10,,450,500,"Extract Zip...");
 text $lst;
 foreach($itm,$lst){
  if strpos($itm,"\")!=-1 {$path = getpathcomponent($itm,path);} else {$path = ''};
  zip_extract($file,$path,$itm);
 }

Re: Extracting a Zip file to a folder via CTB

Posted: 04 Jul 2014 11:10
by Stef123
Thank you Sammay,
interesting script - but still miles away from the comfortable handling I am used to.

Task: Find a few select items and include them in other zips
Workflow:
Left pane = Source: I open multiple zips in different tabs
Right pane = Target: multiple zips open in multiple tabs as well

I drag&drop items from the left to the right pane, onto appropriate target tabs - sorting and filtering and previewing as needed.
In other words: It's a live view with live-zipping taking place behind the scenes - the file manager handles it for me. I never even click a command like "Zip here, Extract there".

Re: Extracting a Zip file to a folder via CTB

Posted: 04 Jul 2014 11:22
by bdeshi
Ah.
if it means what I think it means, then full support for zip exploring is needed for XY to accomplish your task.

*contemplating*
And it might become possible if this wish http://www.xyplorer.com/xyfc/viewtopic.php?f=5&t=11735 is fulfilled.
It's already half-possible now. If you have a zip archive displayed in the InfoTab preview pane, then you can extract/add files by dragging. Only you have to drag from/to another app/XY copy, because focusing another file will change the IP content (locking IP tab comes into play here). Deleting is also supported.

Re: Extracting a Zip file to a folder via CTB

Posted: 04 Jul 2014 12:24
by Stef123
SammaySarkar wrote:Only you have to drag from/to another app/XY copy, because focusing another file will change the IP content (locking IP tab comes into play here).
Well, yes, yet another improvement, but it's just not as smooth as handling it directly in list view, on multiple tabs that you see at one glance. Shortcuts (copy to other pane etc) won't work either, when you drag from the preview area, or even across several copies of XY.

Not to mention the reduced screen space when I browse my backup drives (tons of zips) - the preview area of XY spans across the whole width - I either sacrifice my list view or I sacrifice my zip view.

Not to mention the portable issue - XY doesn't have its own zipper, nor does it allow to set up a portable zipper that I can take along. I always depend on the settings on the host system, whatever they have set up and if XY can handle it or not.

No matter what I tried, I have not found an adequate worklow yet (in contrast to paper folders, that was the only other reason for using competitors)