Page 1 of 1

Setting "New tab" behavior: dbl-click opens next to current / + button opens in last position

Posted: 13 Feb 2019 14:20
by cadu
Hi,

I'd appreciate your help.
I'm trying to set XYplorer "New tab" behavior to work this way (see snapshot below):

- On dbl-click tab opens next to current tab
- On click +, tab should next to + sign (last position)

Actually, I'm trying to emulate the same behavior of internet browsers (Chrome, Firefox) when duplicating tab (it opens next to current tab) and opening new tab (+ sign creates tab in last position). I recorded my screen showing that: http://bit.ly/2N45PL4

Is this setting achievable? If not through regular settings, could it be set through script?

Thank you!


XYplorer Tabs 2019-02-13_10-57-58.png

Re: Setting "New tab" behavior: dbl-click opens next to current / + button opens in last position

Posted: 18 Feb 2019 09:03
by admin
This is not a bad idea. I would even say it is expected behavior. So what if I just did it: "+ button opens in last position"? :)

Re: Setting "New tab" behavior: dbl-click opens next to current / + button opens in last position

Posted: 18 Feb 2019 09:06
by highend
Em, only as an option, please. I'm way too much used to the +-button duplicating my current tab right next to it...

Re: Setting "New tab" behavior: dbl-click opens next to current / + button opens in last position

Posted: 18 Feb 2019 09:25
by admin
Aah, the habits... even Keith Richards could get rid of some... come on! :)

Re: Setting "New tab" behavior: dbl-click opens next to current / + button opens in last position

Posted: 18 Feb 2019 09:48
by highend
That would be the same if a browser "Clone tab" command would put the tab not right next to the one to clone but at the end of the tab list...

That's bad habit!

Re: Setting "New tab" behavior: dbl-click opens next to current / + button opens in last position

Posted: 18 Feb 2019 09:51
by jupe
admin wrote: 18 Feb 2019 09:03 This is not a bad idea. I would even say it is expected behavior. So what if I just did it: "+ button opens in last position"? :)
Isn't that what already happens when this is disabled?

Configuration | Tabs and Panes | Tabs | Open new tab next to current

or do you mean you are just implementing the double-click part of this Wish.

Re: Setting "New tab" behavior: dbl-click opens next to current / + button opens in last position

Posted: 18 Feb 2019 10:24
by admin
The idea is that the "New Tab" button and the double-click on the empty tab bar *always* append the new tab to the end, independently of that setting.

PS: Maybe this could be a solution everybody can live with:
- "New Tab" button: unchanged
- double-click on the empty tab bar: now *always* appends the new tab to the end

Chrome-like tab behavior

Posted: 18 Feb 2022 11:10
by o7blue
So I noticed this thread: viewtopic.php?t=20088

Did anything come of this? It would be great to open tabs next to the current one when middle clicking a folder, but also having a reliable way to append a tab at the end. Basically like Chrome/Firefox tabs work.

Re: Setting "New tab" behavior: dbl-click opens next to current / + button opens in last position

Posted: 18 Feb 2022 11:56
by highend
It would be great to open tabs next to the current one when middle clicking a folder, but also having a reliable way to append a tab at the end
Custom event action and a script?

E.g. on middle-click on a folder with

Code: Select all

    // No modifier
    if (<get shift> == 0) {
        tab("new", <curitem>);

    // Alt
    } elseif (<get shift> == 4) {
        $id = tab("newb", <curitem>);
        tab("move", 0, $id);
        seltab -1;
    }

Re: Setting "New tab" behavior: dbl-click opens next to current / + button opens in last position

Posted: 19 Feb 2022 06:49
by jupe
If you end up using the above script, I think you should change the <curitem> var to <CEA_ClickedItem>, otherwise when you no-modifier mclick (modifier won't work in the tree anyway) in the tree or BC bar, it wouldn't perform as expected.

Re: Setting "New tab" behavior: dbl-click opens next to current / + button opens in last position

Posted: 19 Feb 2022 09:31
by eil
Just me 2 cents: bare in mind that Plus is not always in the right-most position(i have it in left-most), and i use that "Open new tab next to current" option, so in my case "tab should next to + sign" as author described, would be totally not in last position.
I'd propose to go further and enhance default behaviour for Plus button single-double clicks, and remake an option into swap them. Say default single-click = open next, double = open last, after enabling option(smth like "Swap Plus button open position") single = open last, double = open next.