plugin renames: fuzzy and random

Renamed fuzzy_search to fuzzy and rdm to random. These names should be easier
to remember since they are the same as the commands they provide.

--HG--
rename : beetsplug/fuzzy_search.py => beetsplug/fuzzy.py
rename : beetsplug/rdm.py => beetsplug/random.py
rename : docs/plugins/fuzzy_search.rst => docs/plugins/fuzzy.rst
rename : docs/plugins/rdm.rst => docs/plugins/random.rst
This commit is contained in:
Adrian Sampson 2012-12-23 14:46:20 -08:00
parent 6b000983c3
commit 51e9c519d4
6 changed files with 20 additions and 11 deletions

View file

@ -88,7 +88,7 @@ fuzzy_cmd.func = fuzzy_list
class Fuzzy(BeetsPlugin): class Fuzzy(BeetsPlugin):
def __init__(self): def __init__(self):
super(Fuzzy, self).__init__('fuzzy') super(Fuzzy, self).__init__()
self.config.add({ self.config.add({
'threshold': 0.7, 'threshold': 0.7,
}) })

View file

@ -14,6 +14,7 @@
"""Get a random song or album from the library. """Get a random song or album from the library.
""" """
from __future__ import absolute_import
from beets.plugins import BeetsPlugin from beets.plugins import BeetsPlugin
from beets.ui import Subcommand, decargs, print_obj from beets.ui import Subcommand, decargs, print_obj
from beets.util.functemplate import Template from beets.util.functemplate import Template

View file

@ -6,6 +6,14 @@ Changelog
This release entirely revamps beets' configuration system. This release entirely revamps beets' configuration system.
* Renamed plugins: The ``rdm`` plugin has been renamed to ``random`` and
``fuzzy_search`` has been renamed to ``fuzzy``.
* Renamed config options: Many plugins have a flag dictating whether their
action runs at import time. This option had many names (``autofetch``,
``autoembed``, etc.) but is now consistently called ``auto``.
* Reorganized import config options: The various ``import_*`` options are now
organized under an ``import:`` heading and their prefixes have been removed.
1.0rc2 (in development) 1.0rc2 (in development)
----------------------- -----------------------
@ -35,7 +43,7 @@ begins today on features for version 1.1.
* New plugin: :doc:`/plugins/convert` **transcodes** music and embeds album art * New plugin: :doc:`/plugins/convert` **transcodes** music and embeds album art
while copying to a separate directory. Thanks to Jakob Schnitzer and Andrew G. while copying to a separate directory. Thanks to Jakob Schnitzer and Andrew G.
Dunn. Dunn.
* New plugin: :doc:`/plugins/fuzzy_search` lets you find albums and tracks * New plugin: :doc:`/plugins/fuzzy` lets you find albums and tracks
using **fuzzy string matching** so you don't have to type (or even remember) using **fuzzy string matching** so you don't have to type (or even remember)
their exact names. Thanks to Philippe Mongeau. their exact names. Thanks to Philippe Mongeau.
* New plugin: :doc:`/plugins/echonest_tempo` fetches **tempo** (BPM) information * New plugin: :doc:`/plugins/echonest_tempo` fetches **tempo** (BPM) information
@ -277,7 +285,7 @@ release.
and delete the originals, which is inefficient if the source and destination and delete the originals, which is inefficient if the source and destination
are on the same filesystem. Use the ``import_move`` configuration option and are on the same filesystem. Use the ``import_move`` configuration option and
see :doc:`/reference/config` for more details. Thanks to Domen Kožar. see :doc:`/reference/config` for more details. Thanks to Domen Kožar.
* New :doc:`/plugins/rdm`: Randomly select albums and tracks from your library. * New :doc:`/plugins/random`: Randomly select albums and tracks from your library.
Thanks to Philippe Mongeau. Thanks to Philippe Mongeau.
* The :doc:`/plugins/mbcollection` by Jeffrey Aylesworth was added to the core * The :doc:`/plugins/mbcollection` by Jeffrey Aylesworth was added to the core
beets distribution. beets distribution.

View file

@ -1,10 +1,10 @@
Fuzzy Search Plugin Fuzzy Search Plugin
=================== ===================
The ``fuzzy_search`` plugin provides a command that search your library using The ``fuzzy`` plugin provides a command that search your library using
fuzzy pattern matching. This can be useful if you want to find a track with complicated characters in the title. fuzzy pattern matching. This can be useful if you want to find a track with complicated characters in the title.
First, enable the plugin named ``fuzzy_search`` (see :doc:`/plugins/index`). First, enable the plugin named ``fuzzy`` (see :doc:`/plugins/index`).
You'll then be able to use the ``beet fuzzy`` command:: You'll then be able to use the ``beet fuzzy`` command::
$ beet fuzzy Vareoldur $ beet fuzzy Vareoldur

View file

@ -50,11 +50,11 @@ disabled by default, but you can turn them on as described above.
inline inline
scrub scrub
rewrite rewrite
rdm random
mbcollection mbcollection
importfeeds importfeeds
the the
fuzzy_search fuzzy
zero zero
ihate ihate
convert convert
@ -97,8 +97,8 @@ Miscellaneous
''''''''''''' '''''''''''''
* :doc:`web`: An experimental Web-based GUI for beets. * :doc:`web`: An experimental Web-based GUI for beets.
* :doc:`rdm`: Randomly choose albums and tracks from your library. * :doc:`random`: Randomly choose albums and tracks from your library.
* :doc:`fuzzy_search`: Search albums and tracks with fuzzy string matching. * :doc:`fuzzy`: Search albums and tracks with fuzzy string matching.
* :doc:`mbcollection`: Maintain your MusicBrainz collection list. * :doc:`mbcollection`: Maintain your MusicBrainz collection list.
* :doc:`ihate`: Automatically skip albums and tracks during the import process. * :doc:`ihate`: Automatically skip albums and tracks during the import process.
* :doc:`bpd`: A music player for your beets library that emulates `MPD`_ and is * :doc:`bpd`: A music player for your beets library that emulates `MPD`_ and is

View file

@ -1,11 +1,11 @@
Random Plugin Random Plugin
============= =============
The ``rdm`` plugin provides a command that randomly selects tracks or albums The ``random`` plugin provides a command that randomly selects tracks or albums
from your library. This can be helpful if you need some help deciding what to from your library. This can be helpful if you need some help deciding what to
listen to. listen to.
First, enable the plugin named ``rdm`` (see :doc:`/plugins/index`). You'll then First, enable the plugin named ``random`` (see :doc:`/plugins/index`). You'll then
be able to use the ``beet random`` command:: be able to use the ``beet random`` command::
$ beet random $ beet random