Auto-open in new tab

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Smertz
Posts: 2
Joined: 03 Jan 2021 01:14

Auto-open in new tab

Post by Smertz »

I'm a new user. I haven't seen the controls for this function, but is there a way to have the system automatically keep opening children files in a new tab just by double-clicking? I realize I can make this happen with a right-click each time, but I want it to be a default behavior.
Thanks

Smertz

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Auto-open in new tab

Post by highend »

You are right-clicking a file and then you select which entry from the context menu?
One of my scripts helped you out? Please donate via Paypal

RalphM
Posts: 2143
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: Auto-open in new tab

Post by RalphM »

I think the OP is rather talking about (sub)folders being opened in new tabs.

Tip: If you click the folder in the tree and hold Shift while doing so, it opens in a new tab.

The same doesn't work in the list though, because Ctrl as well as Shift are used there for multiselect.
Ralph :)
(OS: W11 26H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)

Smertz
Posts: 2
Joined: 03 Jan 2021 01:14

Re: Auto-open in new tab

Post by Smertz »

RalphM wrote: ↑03 Jan 2021 03:51 I think the OP is rather talking about (sub)folders being opened in new tabs.

Tip: If you click the folder in the tree and hold Shift while doing so, it opens in a new tab.

The same doesn't work in the list though, because Ctrl as well as Shift are used there for multiselect.
Yes, that is exactly what I would like. Thanks for the tip about using the Shift key. Alas, I am seeking a toggle-type of control.

Smertz

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Auto-open in new tab

Post by highend »

Menu - Tools - Configuration...
Configuration | General | Custom Event Actions | Changing Locations | After painting the file list -> Run script

And the script would be:

Code: Select all

$flags = tab("get", "flags");
    if ($flags == 0 || regexmatches($flags, "(2|4|6)")) { #350; }
You should probably untick:
Configuration | Tabs and Panes | Tabs | [ ] Prompt on closing a locked tab

This is more a kind of hack but afaik the only possible way to achieve this with a double-click on a folder...
One of my scripts helped you out? Please donate via Paypal

Post Reply