Skip to content

Commit

Permalink
plugins.md: Add (on|pre)Rune documentation (#2837)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKar authored Jul 8, 2023
1 parent 7e64a43 commit e5bbeff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runtime/help/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit e5bbeff

Please sign in to comment.