mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-17 06:20:28 +00:00
Add onRune parameter, utf8 package in plugins.md (#3100)
Add bufpane in parameters of onRune, preRune, and unicode/utf8 Go package in plugins.md.
This commit is contained in:
parent
fe4ade78df
commit
f0bc6281d4
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue