Skip to content

Commit

Permalink
Add onRune parameter, utf8 package in plugins.md (#3100)
Browse files Browse the repository at this point in the history
Add bufpane in parameters of onRune, preRune, and unicode/utf8
Go package in plugins.md.
  • Loading branch information
niten94 authored Mar 12, 2024
1 parent fe4ade7 commit f0bc628
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions runtime/help/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -367,6 +367,7 @@ strings
regexp
errors
time
unicode/utf8
archive/zip
net/http
```
Expand Down

0 comments on commit f0bc628

Please sign in to comment.