CEA"Before browsing a folder": tab("get", "ID") does not return expected value

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
Nolan
Posts: 65
Joined: 27 Nov 2013 05:23

CEA"Before browsing a folder": tab("get", "ID") does not return expected value

Post by Nolan »

XY: v26.70.0307

Steps to reproduce:
1) Open 2 tabs named A and B.
2) In A, run echo tab("get", "ID"); in Address Bar to get A's ID, then close the popup.
3) In B, run echo tab("get", "ID"); in Address Bar to get B's ID, then close the popup.
4) Make A the current tab.
5) Under Cfg > General > CEA > Changing Locations > Before browsing a folder, set Action as "Run Script":
echo tab("get", "ID");
6) Left-click B tab, then the popup shows B's ID, not expected A's.

By the way, if A has Visual Filter "a", B has Visual Filter "b", assigning the code below as the Action script of "Before browsing a folder" :

Code: Select all

echo get("VisualFilter") . "|" . tab("get", "filter");
and then making a switching from A to B, will popup this text content: "a|b". Shouldn't get("VisualFilter") and tab("get", "filter") return the same value?

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

Re: CEA"Before browsing a folder": tab("get", "ID") does not return expected value

Post by admin »

Everything works as it should. It's "Before browsing a folder", not "Before switching tabs".

Nolan
Posts: 65
Joined: 27 Nov 2013 05:23

Re: CEA"Before browsing a folder": tab("get", "ID") does not return expected value

Post by Nolan »

I also mentioned get("VisualFilter") returns A's stuff, while tab("get", "filter"), like tab("get", "ID"), returns B's stuff.
Why get("VisualFilter") and tab("get", "filter") work in non-unified/different "current" tabs, when "Before browsing a folder"?

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

Re: CEA"Before browsing a folder": tab("get", "ID") does not return expected value

Post by admin »

get("VisualFilter") return the list filter, and tab("get", "filter") returns the tab filter. In that moment the tab is already new, but the list still old.

Nolan
Posts: 65
Joined: 27 Nov 2013 05:23

Re: CEA"Before browsing a folder": tab("get", "ID") does not return expected value

Post by Nolan »

OK. Thanks for the explain. So how to get A's (old/previous tab's) ID when "Before browsing a folder"?
I can use get("VisualFilter") to get A's (old/previous tab's) VFilter when "Before browsing a folder", but how to get A's (old/previous tab's) ID? Is there any way?

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

Re: CEA"Before browsing a folder": tab("get", "ID") does not return expected value

Post by admin »

Not really.

What are you trying to do?

Nolan
Posts: 65
Joined: 27 Nov 2013 05:23

Re: CEA"Before browsing a folder": tab("get", "ID") does not return expected value

Post by Nolan »

Not really? You mean it is impossible currently? So this should be a wish for new feature? I want to get old/previous tab's ID when "Before browsing a folder" for more automatic/perfect tabs operation.

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

Re: CEA"Before browsing a folder": tab("get", "ID") does not return expected value

Post by admin »

It's possible, but in a more complicated way.

"more automatic/perfect tabs operation" is too abstract to create helpful ideas from others.

Post Reply