which micro defines:
* `init()`: this function should be used for your plugin initialization.
+ This function is called after buffers have been initialized.
+
+* `preinit()`: initialization function called before buffers have been
+ initialized.
+
+* `postinit()`: initialization function called after `init()`.
* `onBufferOpen(buf)`: runs when a buffer is opened. The input contains
the buffer object.
string is a word character.
- `String(b []byte) string`: converts a byte array to a string.
- `RuneStr(r rune) string`: converts a rune to a string.
+ - `Unzip(src, dest string) error`: unzips a file to given folder.
This may seem like a small list of available functions but some of the objects
returned by the functions have many methods. The Lua plugin may access any
regexp
errors
time
+archive/zip
+net/http
```
For documentation for each of these functions, see the Go standard
The `humanize` package exposes:
* `Bytes`
* `Ordinal`
-* `Ftoa`
-* `FtoaWithDigits`
## Adding help files, syntax files, or colorschemes in your plugin
Micro also has a built in plugin manager which you can invoke with the
`> plugin ...` command, or in the shell with `micro -plugin ...`.
-For the valid commands you can use, see the `command` help topic.
+For the valid commands you can use, see the `commands` help topic.
The manager fetches plugins from the channels (which is simply a list of plugin
metadata) which it knows about. By default, micro only knows about the official