Iāve found how to bind my own command to ctrl+click, but now Iām struggling with obtaining current position of the cursor. Doing view.sel()[0] is obviously unreliable, so Iām looking for a better way.
A great solution would be to get mouse coordinates of the click, convert them to text coordinates via view.layout_to_text and do my stuff. After enabling sublime.log_commands Iāve noticed that Sublime passes mouse coordinates to drag_select handlers (e.g. ācommand: drag_select {āeventā: {ābuttonā: 1, āxā: 582.5, āyā: 274.5}}ā). However, Iāve been unable to get hold of them - neither bound by press_command, nor by command in sublime-mousemap entry, my command doesnāt receive the āeventā argument.
Any ideas?