Page 1 of 1

CEA - Switching panes event

Posted: 31 May 2021 12:35
by highend
If you're switching between panes (without changing folders), no event is triggered

If we had such an event we could implement switching trees (different ones for both panes)...

Re: CEA - Switching panes event

Posted: 31 May 2021 15:20
by Marco
I can see the appeal... +1

Re: CEA - Switching panes event

Posted: 31 May 2021 17:16
by klownboy
Another +1. The thought reminded my of SammaySarkar's Folder Pane Preview which lets you select a folder in the first pane, and preview its contents on the second pane. viewtopic.php?f=7&t=17968 We might be able to simplify it. The script is throwing some recursive errors which can be corrected, but this would simplify that and open doors to other nice scripts.

Re: CEA - Switching panes event

Posted: 25 Jun 2021 09:27
by admin
OK, I'll check that.

Re: CEA - Switching panes event

Posted: 25 Jun 2021 09:41
by highend
Great. Another thing to check:

E.g. in "Sync Browse" mode, a folder changing event is fired twice (one for each pane). It would be nice if this can be reduced to one if both panes are in the same folder

Re: CEA - Switching panes event

Posted: 25 Jun 2021 11:44
by admin
highend wrote: 25 Jun 2021 09:41 E.g. in "Sync Browse" mode, a folder changing event is fired twice (one for each pane). It would be nice if this can be reduced to one if both panes are in the same folder
Depending on the script it might be desired.

Re: CEA - Switching panes event

Posted: 25 Jun 2021 11:48
by highend
Ok, how about a setting then?

Re: CEA - Switching panes event

Posted: 25 Jun 2021 12:12
by admin
Not sure. Might later add a tweak. Needs a little thinking.

Re: CEA - Switching panes event

Posted: 25 Jun 2021 14:32
by highend
For testing: A small custom event action script that switches trees when

a.) Menu - Window - [x] Show Tree
b.) Menu - View - Mini Tree - [x] Mini Tree
c.) You're using the current beta v21.90.0042

Setup:
Configuration | General | Custom Event Actions | Other Events
Events: Switch panes
Action: Run script
Script: Place the content of the attachment into it or load the script file via
load "<some path>\<the file name you'll give to it>.xys";

Each pane now has its own tree^^

At least for me it works fine...

Follow up and download: viewtopic.php?f=7&p=188839

Re: CEA - Switching panes event

Posted: 28 Jun 2021 13:28
by admin
Works well! :tup: :appl: