Open multiple selected folders in background tabs?
Open multiple selected folders in background tabs?
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?
Code: Select all
foreach($item, "<get sip>", "<crlf>") {
if(exists($item) == "2") {tab("newb", $item)}
wait 1;
}Windows 11 24H2 @100% 2560x1440
Re: Open multiple selected folders in background tabs?
Thanks, I assigned as a User button on my toolbar!Norn wrote: ↑20 Jun 2024 22:10Code: Select all
foreach($item, "<get sip>", "<crlf>") { if(exists($item) == "2") {tab("newb", $item)} wait 1; }
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?
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.
Re: Open multiple selected folders in background tabs?
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.
@Don: Opening a new background tab on a live filtered tab removes the LF. 
Code: Select all
$lf = <get livefilter>;
foreach($item, <selitems |>) { if (exists($item) == 2) { tab("newb", $item); } wait; }
filter $lf, 8;
Re: Open multiple selected folders in background tabs?
That works, thanks!
Re: Open multiple selected folders in background tabs?
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?
Oh, thanks, indeed I hadn't seen this. Fixed in next beta.
FAQ | XY News RSS | XY X
XYplorer Beta Club