mirror of
https://github.com/beetbox/beets.git
synced 2025-12-30 12:32:33 +01:00
Remove vestigial editor config option
We now just use $EDITOR.
This commit is contained in:
parent
b33a024549
commit
de6813eab5
2 changed files with 0 additions and 14 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue