micro/runtime/help
Dmitry Maluka 34ac83b594 Introduce mouse release and mouse drag events
Introduce separate mouse release and mouse drag (move while pressed)
events: MouseLeftRelease, MouseLeftDrag, MouseRightRelease etc,
to allow binding them to actions independently from mouse press events
(MouseLeft, MouseRight etc).

This change:

- Makes it possible to handle mouse release and drag for arbitrary mouse
  events and actions (including Lua actions), not just for MouseLeft as
  in the current code.

- Fixes issue #2599 with PastePrimary and MouseMultiCursor actions:
  selection is pasted not only when pressing MouseMiddle but also when
  moving mouse with MouseMiddle pressed; similarly, a new multicursor is
  added not only when pressing Ctrl-MouseLeft but also when moving mouse
  with Ctrl-MouseLeft pressed.

My initial approach was not to introduce new events for mouse release
and mouse drag but to pass "mouse released" info to action functions
in addition to *tcell.EventMouse to let the action functions do the
necessary checks (similarly to what MousePress is already doing). But
then I realized it was a bad idea, since we still want to be able also
to bind mouse events to regular key actions (such as PastePrimary)
which don't care about mouse event info.
2023-01-29 18:21:59 +01:00
..
colors.md Fixes for syntax and docs 2021-08-03 00:07:14 -04:00
commands.md Clarified some documentation (#2259) 2021-11-02 13:26:14 -07:00
copypaste.md Add alcritty and foot to the list of OSC 52 supporting terminals (#2154) 2021-07-13 23:37:48 -04:00
defaultkeys.md Add better explanation about find 2022-10-12 19:05:42 -07:00
help.md Doc changes (#2646) 2023-01-11 21:56:23 -08:00
keybindings.md Introduce mouse release and mouse drag events 2023-01-29 18:21:59 +01:00
options.md Rename multimode to multiopen 2023-01-24 17:06:52 -08:00
plugins.md Made apparent the functionality of the ftoptions plugin (#2321) 2022-02-11 14:15:26 -08:00
tutorial.md Fix typo in tutorial.md (#2130) 2021-06-12 23:52:08 -04:00