From b881e87496b9463e3ca9a48abdfe9a7e5df83230 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 4 Feb 2021 14:44:34 +0100 Subject: buffers/namedqueries: add a hook for sorting queries --- docs/source/configuration/hooks.rst | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'docs') diff --git a/docs/source/configuration/hooks.rst b/docs/source/configuration/hooks.rst index be8972b3..1c7f4d9c 100644 --- a/docs/source/configuration/hooks.rst +++ b/docs/source/configuration/hooks.rst @@ -218,3 +218,12 @@ Apart from command pre- and posthooks, the following hooks will be interpreted: :param ui: the main user interface :type ui: :class:`alot.ui.UI` + +.. py:function:: namedqueries_sort(named_queries) + + Sort (and possibly filter or otherwise process) named queries. + + :param named_queries: Dict of 'query name' : 'query string' + :type named_queries: dict + + :returns: sequence of ('query name', 'query string') pairs -- cgit v1.2.3