mirror of
https://github.com/beetbox/beets.git
synced 2025-12-28 11:32:30 +01:00
Add docs note for custom-field sorting, fix typo
* Add note about ordering when sorting by custom-fields on query.rst. * Fix typo on inline.rst.
This commit is contained in:
parent
0ed3f4067a
commit
47ceb492dc
2 changed files with 6 additions and 2 deletions
|
|
@ -6,9 +6,9 @@ it, you can define template fields in your beets configuration file and refer
|
|||
to them from your template strings in the ``paths:`` section (see
|
||||
:doc:`/reference/config/`).
|
||||
|
||||
To use the `ìnline`` plugin, enable it in your configuration
|
||||
To use the ``inline`` plugin, enable it in your configuration
|
||||
(see :ref:`using-plugins`).
|
||||
Then, make a `item_fields:`` block in your config file. Under this key, every line defines a
|
||||
Then, make a ``item_fields:`` block in your config file. Under this key, every line defines a
|
||||
new template field; the key is the name of the field (you'll use the name to
|
||||
refer to the field in your templates) and the value is a Python expression or
|
||||
function body. The Python code has all of a track's fields in scope, so you can
|
||||
|
|
|
|||
|
|
@ -261,5 +261,9 @@ sort order: ``Bar foo Qux``. This behavior can be changed with the
|
|||
result in lower-case values being placed after upper-case values, e.g.,
|
||||
``Bar Qux foo``.
|
||||
|
||||
Note that when sorting by fields that are not present on all items (such as
|
||||
flexible fields, or those defined by plugins) in *ascending* order, the items
|
||||
that lack that particular field will be listed at the *beginning* of the list.
|
||||
|
||||
You can set the default sorting behavior with the :ref:`sort_item` and
|
||||
:ref:`sort_album` configuration options.
|
||||
|
|
|
|||
Loading…
Reference in a new issue