From de6813eab5dc31a64feadbc105a9dc506bcec43f Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sat, 14 Nov 2015 13:38:41 -0800 Subject: [PATCH] Remove vestigial `editor` config option We now just use $EDITOR. --- beetsplug/edit.py | 11 ----------- docs/plugins/edit.rst | 3 --- 2 files changed, 14 deletions(-) diff --git a/beetsplug/edit.py b/beetsplug/edit.py index 6d36e1fa3..4c4d7e1ca 100644 --- a/beetsplug/edit.py +++ b/beetsplug/edit.py @@ -44,15 +44,11 @@ class EditPlugin(plugins.BeetsPlugin): super(EditPlugin, self).__init__() self.config.add({ - 'editor': '', 'albumfields': 'album albumartist', 'itemfields': 'track title artist album', 'not_fields': 'id path', }) - # The editor field in the config lets you specify your editor. - self.editor = self.config['editor'].as_str_seq() - # the albumfields field in your config sets the tags that # you want to see/change for albums. # Defaults to album albumartist. @@ -71,9 +67,6 @@ class EditPlugin(plugins.BeetsPlugin): # value. The ID of an item will never be changed. self.not_fields = self.config['not_fields'].as_str_seq() - self.ed = None - self.ed_args = None - def commands(self): edit_command = ui.Subcommand( 'edit', @@ -97,10 +90,6 @@ class EditPlugin(plugins.BeetsPlugin): return [edit_command] def editor_music(self, lib, opts, args): - if self.editor: - self.ed_args = self.editor[1:] if len(self.editor) > 1 else None - self.ed = self.editor[0] if self.editor else None - # main program flow # Get the objects to edit. query = ui.decargs(args) diff --git a/docs/plugins/edit.rst b/docs/plugins/edit.rst index 85d7343fc..224988fc5 100644 --- a/docs/plugins/edit.rst +++ b/docs/plugins/edit.rst @@ -51,14 +51,11 @@ Make a ``edit:`` section in your config.yaml ``(beet config -e)`` :: edit: - editor: nano -w -p albumfields: genre album itemfields: track artist not_fields: id path separator: "<>" -* ``editor:`` pick your own texteditor; add arguments if needed. If no``editor:`` then your system opens the file-extension. - * The ``albumfields:`` and ``itemfields:`` lets you list the fields you want to change. ``albumfields:`` gets picked if you put ``-a`` in your search query, else ``itemfields:``. For a list of fields do the ``beet fields`` command.