Skip to content

Conversation

@dmaluka
Copy link
Collaborator

@dmaluka dmaluka commented Jul 5, 2025

  • Document binding keys to lua functions (it still hasn't been documented quite properly, except for the example in tutorial.md)
  • Mention previously undocumented mouse actions MouseDrag and MouseRelease
  • Document passing the mouse event info as *tcell.EventMouse to lua functions bound to mouse buttons (which has worked since Improve support for mouse events handling #2605 but was never documented) as well as to mouse action callbacks onMouseXXX and preMouseXXX (which has been recently implemented in Pass mouse info to {on,pre}MouseXXX callbacks #3779)
  • Correctly document how the return value of onXXX action callbacks is used (the existing documentation for that is completely untrue: this return value not used for relocating the view or the cursor, it is used for chaining multiple actions in keybindings).

dmaluka added 4 commits July 5, 2025 17:23
This is still not properly documented (except for the example in
tutorial.md), so document it.
The documentation says that the returned value of onAction callbacks
is used for determining whether the view should be relocated, which
has nothing to do with reality, this returned value is used for a
completely different thing. So update the docs accordingly.
@dmaluka dmaluka merged commit 7492195 into zyedidia:master Jul 19, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants