From 51e9c519d40288df8d08ef5848d4894e5e09896c Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sun, 23 Dec 2012 14:46:20 -0800 Subject: [PATCH] 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 --- beetsplug/{fuzzy_search.py => fuzzy.py} | 2 +- beetsplug/{rdm.py => random.py} | 1 + docs/changelog.rst | 12 ++++++++++-- docs/plugins/{fuzzy_search.rst => fuzzy.rst} | 4 ++-- docs/plugins/index.rst | 8 ++++---- docs/plugins/{rdm.rst => random.rst} | 4 ++-- 6 files changed, 20 insertions(+), 11 deletions(-) rename beetsplug/{fuzzy_search.py => fuzzy.py} (98%) rename beetsplug/{rdm.py => random.py} (98%) rename docs/plugins/{fuzzy_search.rst => fuzzy.rst} (85%) rename docs/plugins/{rdm.rst => random.rst} (80%) diff --git a/beetsplug/fuzzy_search.py b/beetsplug/fuzzy.py similarity index 98% rename from beetsplug/fuzzy_search.py rename to beetsplug/fuzzy.py index 4957462ef..6120842ef 100644 --- a/beetsplug/fuzzy_search.py +++ b/beetsplug/fuzzy.py @@ -88,7 +88,7 @@ fuzzy_cmd.func = fuzzy_list class Fuzzy(BeetsPlugin): def __init__(self): - super(Fuzzy, self).__init__('fuzzy') + super(Fuzzy, self).__init__() self.config.add({ 'threshold': 0.7, }) diff --git a/beetsplug/rdm.py b/beetsplug/random.py similarity index 98% rename from beetsplug/rdm.py rename to beetsplug/random.py index 98e008232..28d7ff694 100644 --- a/beetsplug/rdm.py +++ b/beetsplug/random.py @@ -14,6 +14,7 @@ """Get a random song or album from the library. """ +from __future__ import absolute_import from beets.plugins import BeetsPlugin from beets.ui import Subcommand, decargs, print_obj from beets.util.functemplate import Template diff --git a/docs/changelog.rst b/docs/changelog.rst index 40a682774..b15342645 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -6,6 +6,14 @@ Changelog 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) ----------------------- @@ -35,7 +43,7 @@ begins today on features for version 1.1. * New plugin: :doc:`/plugins/convert` **transcodes** music and embeds album art while copying to a separate directory. Thanks to Jakob Schnitzer and Andrew G. 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) their exact names. Thanks to Philippe Mongeau. * 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 are on the same filesystem. Use the ``import_move`` configuration option and 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. * The :doc:`/plugins/mbcollection` by Jeffrey Aylesworth was added to the core beets distribution. diff --git a/docs/plugins/fuzzy_search.rst b/docs/plugins/fuzzy.rst similarity index 85% rename from docs/plugins/fuzzy_search.rst rename to docs/plugins/fuzzy.rst index 64ddf8edf..be659b386 100644 --- a/docs/plugins/fuzzy_search.rst +++ b/docs/plugins/fuzzy.rst @@ -1,10 +1,10 @@ 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. -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:: $ beet fuzzy Vareoldur diff --git a/docs/plugins/index.rst b/docs/plugins/index.rst index 50a073bdd..898795150 100644 --- a/docs/plugins/index.rst +++ b/docs/plugins/index.rst @@ -50,11 +50,11 @@ disabled by default, but you can turn them on as described above. inline scrub rewrite - rdm + random mbcollection importfeeds the - fuzzy_search + fuzzy zero ihate convert @@ -97,8 +97,8 @@ Miscellaneous ''''''''''''' * :doc:`web`: An experimental Web-based GUI for beets. -* :doc:`rdm`: Randomly choose albums and tracks from your library. -* :doc:`fuzzy_search`: Search albums and tracks with fuzzy string matching. +* :doc:`random`: Randomly choose albums and tracks from your library. +* :doc:`fuzzy`: Search albums and tracks with fuzzy string matching. * :doc:`mbcollection`: Maintain your MusicBrainz collection list. * :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 diff --git a/docs/plugins/rdm.rst b/docs/plugins/random.rst similarity index 80% rename from docs/plugins/rdm.rst rename to docs/plugins/random.rst index 4d8eb279e..a7fac2579 100644 --- a/docs/plugins/rdm.rst +++ b/docs/plugins/random.rst @@ -1,11 +1,11 @@ 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 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:: $ beet random