-
Is it possible to have a lua callback (onAction()) for Mouse Drag (release) to get the selection? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
It is possible, not via a callback (onAction) but via a keybinding. With PR #2606 (merged 3 days ago) you can bind Also with PR #2605 (also merged 3 days ago), if you bind a mouse event to a lua function, this lua function receives *tcell.EventMouse with information about the mouse event (x,y coordinates and so on). |
Beta Was this translation helpful? Give feedback.
-
It works like a charm. |
Beta Was this translation helpful? Give feedback.
Actually I've realized it does work with
onAction
callbacks as well. You can try: