From f0bc6281d4c1b2fc18d5184c9954c7db6597d8df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AB=E3=81=A6=E3=82=93?= <127052329+niten94@users.noreply.github.com> Date: Wed, 13 Mar 2024 04:40:13 +0800 Subject: [PATCH] Add onRune parameter, utf8 package in plugins.md (#3100) Add bufpane in parameters of onRune, preRune, and unicode/utf8 Go package in plugins.md. --- runtime/help/plugins.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/runtime/help/plugins.md b/runtime/help/plugins.md index dc87476f..19dd0c3e 100644 --- a/runtime/help/plugins.md +++ b/runtime/help/plugins.md @@ -67,9 +67,9 @@ 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 +* `onRune(bufpane, rune)`: runs when the composed rune has been inserted -* `preRune(rune)`: runs before the composed rune will be inserted +* `preRune(bufpane, 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: @@ -367,6 +367,7 @@ strings regexp errors time +unicode/utf8 archive/zip net/http ```