From 0cc8723e8e1f032d1abe6841b45b35e14d0379f4 Mon Sep 17 00:00:00 2001 From: Arijit Basu Date: Thu, 6 Jul 2023 22:34:09 +0530 Subject: [PATCH] Document on_selection_change --- docs/en/src/configuration.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/en/src/configuration.md b/docs/en/src/configuration.md index 420d388..ef84ab0 100644 --- a/docs/en/src/configuration.md +++ b/docs/en/src/configuration.md @@ -131,6 +131,14 @@ return { { LogSuccess = "Switched layout" }, { CallLuaSilently = "custom.some_plugin_with_hooks.on_layout_switch" }, } + + -- Add messages to send when the selection changes + -- + -- Type: list of [Message](https://xplr.dev/en/message#message)s + on_selection_change = { + { LogSuccess = "Selection changed" }, + { CallLuaSilently = "custom.some_plugin_with_hooks.on_selection_change" }, + } } ```