micro/cmd/micro
Dmytro Maluka b70f0eb113
Add onAnyEvent callback (#3244)
Implement a radical approach to improving abilities of plugins to detect
and handle various changes of micro's state: add onAnyEvent callback
which is called, literally, after any event. A plugin can use this
callback to compare a state after the previous event and after the
current event, and thus is able to catch various events that cannot be
detected using other callbacks.

Some examples of such events:

- change of current working directory
- switching cursor focus between a bufpane and the command bar
- change of message text in the status bar
2024-05-14 18:01:15 +02:00
..
clean.go Ignore tool files 2021-08-21 18:07:43 -04:00
debug.go Fix v2 import path for go mod 2020-05-04 10:16:15 -04:00
initlua.go initlua: Correct return type of CurPane() to be of type *BufPane 2024-04-25 23:34:39 +02:00
micro.go Add onAnyEvent callback (#3244) 2024-05-14 18:01:15 +02:00
micro_test.go test: Perform DoEvent() as long as normal or draw events are present 2024-04-14 16:55:59 +02:00