-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
API/UI: add nvim_input_mouse() including multigrid mouse support #9429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Instead of extending the |
Began @justinmk first iteration will not support "queued" mouse events, it will be interactive GUI support only as |
4e51b05
to
7808250
Compare
Added modifier support (and tests), it should be feature complete. (Except for mouse redraw failure, marked in tests) |
cc6e8dd
to
9b86be2
Compare
While working on this I identified that |
This comment has been minimized.
This comment has been minimized.
Fixed the remaining error (calculate cursor pos after vertical resize). |
/// that the "-" separator is optional, so "C-A-", "c-a" | ||
/// and "CA" can all be used to specify Ctrl+Alt+click | ||
/// @param grid For a client using |ui-multigrid| pass in the grid number. | ||
/// Other clients should pass in 0 (not 1). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens if a ext_multigrid
client sends 0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The difference is primarily for floats. Both a TUI-like and a multigrid client could be connected at the same time, then 0 would correspond to the TUI grid where floats have been merged in (so float clicks should be detected), while 1 is only the default grid without floats (because the client will manage the positions of floats itself). I will expand on the docs in the float PR itself.
|
Thanks, updated. |
Needs more tests (and likely edge cases to fix). Also docs, as far as I can see the existing
<LeftMouse><2,1>
format hasn't been properly documented, should probably go inui.txt
.ref #9421