Page 1 of 1
Open multiple selected folders in background tabs?
Posted: 20 Jun 2024 17:02
by PlorerXY6
Have been trying a few ways to open all my selected folders in background tabs (2 or more selected), drag and drop onto tab bar, ctrl/shift click on "Open in Background" context menu option, but only the first folder selected works. Is there a way to do this at present? Thanks!
Re: Open multiple selected folders in background tabs?
Posted: 20 Jun 2024 22:10
by Norn
Code: Select all
foreach($item, "<get sip>", "<crlf>") {
if(exists($item) == "2") {tab("newb", $item)}
wait 1;
}
Re: Open multiple selected folders in background tabs?
Posted: 21 Jun 2024 15:16
by PlorerXY6
Norn wrote: ↑20 Jun 2024 22:10
Code: Select all
foreach($item, "<get sip>", "<crlf>") {
if(exists($item) == "2") {tab("newb", $item)}
wait 1;
}
Thanks, I assigned as a User button on my toolbar!
I had thought maybe putting XYPlorer.exe in the Open With button would work too built in but maybe not as you can't seem to modify folder associations.
Re: Open multiple selected folders in background tabs?
Posted: 17 May 2025 02:12
by Quaraxkad
Thanks for this script, I like it! One question though. Not sure why this is happening, but if I have a Live Filter active when this script runs, it is removed. Any idea why this happens? A Quick Filter stays active, but Live Filter is removed.
Re: Open multiple selected folders in background tabs?
Posted: 17 May 2025 03:46
by jupe
That looks like a bug, it has nothing to do with the script, if you are interested though, below is a quick modified version of it that should mitigate the issue until it is fixed.
Code: Select all
$lf = <get livefilter>;
foreach($item, <selitems |>) { if (exists($item) == 2) { tab("newb", $item); } wait; }
filter $lf, 8;
@Don: Opening a new background tab on a live filtered tab removes the LF.

Re: Open multiple selected folders in background tabs?
Posted: 17 May 2025 04:14
by Quaraxkad
That works, thanks!
Re: Open multiple selected folders in background tabs?
Posted: 29 May 2025 02:56
by jupe
jupe wrote: ↑17 May 2025 03:46
@Don: Opening a new background tab on a live filtered tab removes the LF.
Just bumping this, not sure if you missed it or just haven't seen it yet, and a repro if req.
filter "*.", 8; msg "Notice filter will disappear when BG tab opens"; tab("newb");
Opening a BG tab by any of the UI cmds also causes it.
Re: Open multiple selected folders in background tabs?
Posted: 29 May 2025 10:14
by admin
Oh, thanks, indeed I hadn't seen this. Fixed in next beta.