From e5bbeff8acf6522813bfb450d0556433d15c08d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6ran=20Karl?= <3951388+JoeKar@users.noreply.github.com> Date: Sat, 8 Jul 2023 23:07:56 +0200 Subject: [PATCH] plugins.md: Add (on|pre)Rune documentation (#2837) --- runtime/help/plugins.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runtime/help/plugins.md b/runtime/help/plugins.md index a175f3e82..3201e63c2 100644 --- a/runtime/help/plugins.md +++ b/runtime/help/plugins.md @@ -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: