Need some help on mouse event script
Posted: 12 Jul 2025 03:44
Hello! Greetings!
I am trying to write a script for a customed mouse event, but I don't know how I can restrict the script based on which current pane I am working on.
My idea is one script that activates when I middle click a folder:
If the folder is in pane 1 ⇒ middle click open this folder in pane 2 current tab (not a new tab);
If the folder is in pane 2 ⇒ middle click open this folder in pane 2 in a new tab;
-
The second script is activated when I middle click blank space in the list:
Middle click in pane 1 ⇒ if pane 2 is already opened, close pane 2; if pane 2 is not yet opened, open pane 2 and in the current tab of pane 2, go to the same path as in pane 1;
Middle click in pane 2 ⇒ close pane 2
Please help with my script or give me some hint ;p
I am trying to write a script for a customed mouse event, but I don't know how I can restrict the script based on which current pane I am working on.
My idea is one script that activates when I middle click a folder:
If the folder is in pane 1 ⇒ middle click open this folder in pane 2 current tab (not a new tab);
If the folder is in pane 2 ⇒ middle click open this folder in pane 2 in a new tab;
-
The second script is activated when I middle click blank space in the list:
Middle click in pane 1 ⇒ if pane 2 is already opened, close pane 2; if pane 2 is not yet opened, open pane 2 and in the current tab of pane 2, go to the same path as in pane 1;
Middle click in pane 2 ⇒ close pane 2
Please help with my script or give me some hint ;p