Code: Select all
v24.80.0001 - 2023-08-10 19:10
+ Custom Event Actions: The variable <CEA_ClickedItem> is now also set when
double-clicking anywhere on the row of an item, so you can use <CEA_ClickedItem> in
scripts for the "Double-click on white in file list" event.
+ Custom Event Actions: Added new variable <CEA_ClickedColumn> that is set to the
name of the clicked column (as it appears in the interface). Works in Details view only.
+ Custom Event Actions: Added new variable <CEA_ClickedCell> that is set to the
content of the clicked cell. Works in Details view only.
> All three above variables are set on these "on white" events when you actually click
any cell in an item row apart from the Name itself:
- Double-click on white in file list
- Middle-click on white in file list
- Right-click on white in file list
Proof of concept script that works in all three events:
if (<CEA_ClickedItem>) {
echo "Clicked item: <CEA_ClickedItem><crlf>Clicked column: <CEA_ClickedColumn><crlf>Clicked cell: <CEA_ClickedCell>";
}
This example script will open the path of the dbl-clicked item in a new tab (useful
in search results):
if (<CEA_ClickedItem>) {
tab("new", gpc(<CEA_ClickedItem>, "path"));
}
(1) Installer Package, (2) No-Install Package (for manual unpacking).
XYplorer Beta Club