[TxMt] Re: location of pop-up not under cursor
Allan Odgaard
mailinglist at textmate.org
Mon Jul 6 06:39:13 UTC 2015
On 6 Jul 2015, at 1:44, Matt Neuburg wrote:
> Looking more closely, I think the problem is that the tooltip is
> appearing at the insertion point rather than the cursor, if the
> insertion point happens to be visible on the screen.
Correct, it prefers the insertion point, as that’s where the action
is, and as many probably use TextMate without involving the mouse
cursor, showing tool tips and other pop-ups at mouse cursor location
would not be ideal.
> So there is a serious inconsistency here, since sometimes it's at the
> cursor and sometimes it's not.
The mouse cursor is fallback for when the caret is hidden.
What sort of actions are you using where you have the “serious
inconsistency” issue?
Perhaps a better heuristic would be to use mouse location (also) when
the action (that results in tool tip or pop-up menu) is triggered by the
mouse. Though it might also end up making it appear even more
arbitrarily.
More information about the textmate
mailing list