Open multiple selected folders in background tabs?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
PlorerXY6
Posts: 83
Joined: 13 Oct 2022 19:51

Open multiple selected folders in background tabs?

Post 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!

Norn
Posts: 483
Joined: 24 Oct 2021 16:10

Re: Open multiple selected folders in background tabs?

Post by Norn »

Code: Select all

foreach($item, "<get sip>", "<crlf>") {
	if(exists($item) == "2") {tab("newb", $item)}
	 wait 1;
}
Windows 11 24H2 @100% 2560x1440

PlorerXY6
Posts: 83
Joined: 13 Oct 2022 19:51

Re: Open multiple selected folders in background tabs?

Post 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.

Quaraxkad
Posts: 180
Joined: 20 Apr 2014 18:01

Re: Open multiple selected folders in background tabs?

Post 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.
Last edited by Quaraxkad on 17 May 2025 04:11, edited 1 time in total.

jupe
Posts: 3292
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Open multiple selected folders in background tabs?

Post 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. :bug:

Quaraxkad
Posts: 180
Joined: 20 Apr 2014 18:01

Re: Open multiple selected folders in background tabs?

Post by Quaraxkad »

That works, thanks!

jupe
Posts: 3292
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Open multiple selected folders in background tabs?

Post by jupe »

jupe wrote: 17 May 2025 03:46 @Don: Opening a new background tab on a live filtered tab removes the LF. :bug:
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.

admin
Site Admin
Posts: 64915
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Open multiple selected folders in background tabs?

Post by admin »

Oh, thanks, indeed I hadn't seen this. Fixed in next beta.

Post Reply