plugins.md: Add (on|pre)Rune documentation (#2837)

This commit is contained in:
Jöran Karl
2023-07-08 23:07:56 +02:00
committed by GitHub
parent 7e64a43af6
commit e5bbeff8ac

View File

@@ -65,6 +65,10 @@ which micro defines:
by the user. Returns a boolean which defines whether the action should
be canceled.
* `onRune(rune)`: runs when the composed rune has been inserted
* `preRune(rune)`: runs before the composed rune will be inserted
For example a function which is run every time the user saves the buffer
would be: