From 4283881591d05963ed65a68f54261d88ad960b3d Mon Sep 17 00:00:00 2001 From: Dmytro Maluka Date: Fri, 12 Apr 2024 02:33:16 +0200 Subject: [PATCH] onSetActive doc: move it Cosmetic change: move onSetActive description to keep it together with other callbacks that are associated with bufpane, not with buffer. --- runtime/help/plugins.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/help/plugins.md b/runtime/help/plugins.md index e37a5db4..948e7b72 100644 --- a/runtime/help/plugins.md +++ b/runtime/help/plugins.md @@ -51,14 +51,14 @@ which micro defines: * `postinit()`: initialization function called after `init()`. -* `onSetActive(bufpane)`: runs when changing the currently active bufpane. - * `onBufferOpen(buf)`: runs when a buffer is opened. The input contains the buffer object. * `onBufPaneOpen(bufpane)`: runs when a bufpane is opened. The input contains the bufpane object. +* `onSetActive(bufpane)`: runs when changing the currently active bufpane. + * `onAction(bufpane)`: runs when `Action` is triggered by the user, where `Action` is a bindable action (see `> help keybindings`). A bufpane is passed as input and the function should return a boolean defining