command/database: support "sort" and "window" in more commands

Closes https://github.com/MusicPlayerDaemon/MPD/issues/516
This commit is contained in:
Max Kellermann
2019-03-25 18:30:56 +01:00
parent c60d374fc8
commit b1b630a4cc
3 changed files with 14 additions and 29 deletions

View File

@@ -849,7 +849,7 @@ The music database
.. _command_findadd:
:command:`findadd {FILTER}`
:command:`findadd {FILTER} [sort {TYPE}] [window {START:END}]`
Search the database for songs matching
``FILTER`` (see :ref:`Filters <filter_syntax>`) and add them to
the queue. Parameters have the same meaning as for
@@ -961,14 +961,14 @@ The music database
.. _command_searchadd:
:command:`searchadd {FILTER}`
:command:`searchadd {FILTER} [sort {TYPE}] [window {START:END}]`
Search the database for songs matching
``FILTER`` (see :ref:`Filters <filter_syntax>`) and add them to
the queue.
Parameters have the same meaning as for :ref:`search <command_search>`.
:command:`searchaddpl {NAME} {FILTER}`
:command:`searchaddpl {NAME} {FILTER} [sort {TYPE}] [window {START:END}]`
Search the database for songs matching
``FILTER`` (see :ref:`Filters <filter_syntax>`) and add them to
the playlist named ``NAME``.