To make full use of custom event actions, "clicking on line numbers".
I find it highly irritating that it doesn't matter where you click in the line numbers column (apart from the header)
and the cea is executed for the current selected item instead of the item at the line number I'm clicking on.
With this addition we can precisely define what will happen...
Code: Select all
lineatpos()
Returns the line number (only in a list pane) at a certain screen position.
Otherwise it'll return 0.
Syntax
lineatpos([x], [y], [flags])
x (optional) Defaults to the X mouse position on screen.
y (optional) Defaults to the Y mouse position on screen.
flags
0: If x and y are passed, they are the position on screen.
1: If x and y are passed, they are the position on XYplorer.
return Line number.
Examples
echo lineatpos(); //line number (in list pane) at current mouse position on screen