Page 1 of 1

Auto-open in new tab

Posted: 03 Jan 2021 01:20
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

Re: Auto-open in new tab

Posted: 03 Jan 2021 01:40
by highend
You are right-clicking a file and then you select which entry from the context menu?

Re: Auto-open in new tab

Posted: 03 Jan 2021 03:51
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.

Re: Auto-open in new tab

Posted: 03 Jan 2021 06:19
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

Re: Auto-open in new tab

Posted: 03 Jan 2021 10:35
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...