Page 1 of 1
CEA Before Switch Tabs
Posted: 05 Jan 2024 21:33
by eil
There is already a CEA Switch Tabs, but that effects only the selected tab(the one you switched to). So i propose additional CEA Before Switch Tabs, that would allow to effect the "old tab"(one you switch from) = the selected effect/scripts happens right before switch and only then focus goes to newly selected tab.
Just like there there are CEAs for actions after Start and before Exit of XY, this would provide quite a lot of possibilities Before making a tab's switch.
Re: CEA Before Switch Tabs
Posted: 06 Jan 2024 10:55
by admin
Makes sense, but no time for it ATM.
Re: CEA Before Switch Tabs
Posted: 06 Jan 2024 19:28
by eil
Will remind later.
Re: CEA Before Switch Tabs
Posted: 06 Jan 2024 19:29
by admin
Thought so.
Re: CEA Before Switch Tabs
Posted: 01 Mar 2024 21:34
by eil
Reminding.
Re: CEA Before Switch Tabs
Posted: 02 Jan 2025 14:26
by eil
Code: Select all
+ SC tab enhanced: The operation "get" got a new data parameter "IDprev". On or after
a tab switch it returns the ID of the previously selected tab. Initially (after
startup, before any tab switch) the value defaults to 1. The value can be used e.g.
in the Custom Event Actions "Before browsing a folder" or "Switch tabs".
Example:
echo "Tab ID " . tab("get", "IDprev") . " to " . tab("get", "ID");
This goes close to the topic, so reminding as maybe it's a time now.
Re: CEA Before Switch Tabs
Posted: 02 Jan 2025 17:42
by admin
Not many others seem to be interested.
Re: CEA Before Switch Tabs
Posted: 02 Jan 2025 21:22
by eil
Too bad, probably they didn't stumble upon situation when some checks/operations need to be done in tab before switching.

Cause there are lots of scenarios for it. Say check location on switch and if it's "special" - move all specified files to other location, or if it's "temp_work" - delete all specified as temporary. Another variant when auto-save for paper folders is disabled: check for changes on tab switch and note user, prposing to save that p.file before tab is switched and changes lost.