diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-02-04 14:44:34 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-02-04 14:44:34 +0100 |
commit | b881e87496b9463e3ca9a48abdfe9a7e5df83230 (patch) | |
tree | e4c6526cb2929021a6979dfc5e3fcd8db39b7c22 /docs | |
parent | 4aec805399497c6082bd5328d95197a94ef32b9d (diff) |
buffers/namedqueries: add a hook for sorting queries
Diffstat (limited to 'docs')
-rw-r--r-- | docs/source/configuration/hooks.rst | 9 |
1 files changed, 9 insertions, 0 deletions
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 |