diff --git a/beets/config_default.yaml b/beets/config_default.yaml index 3b03779664..45f13efef6 100644 --- a/beets/config_default.yaml +++ b/beets/config_default.yaml @@ -25,6 +25,7 @@ import: pretend: false search_ids: [] duplicate_action: ask + bell: no clutter: ["Thumbs.DB", ".DS_Store"] ignore: [".*", "*~", "System Volume Information", "lost+found"] diff --git a/beets/ui/commands.py b/beets/ui/commands.py index 8a07f6147d..06ab6f0a5f 100755 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -613,6 +613,9 @@ def choose_candidate(candidates, singleton, rec, cur_artist=None, }) if default is None: require = True + # Bell ring when user interaction is needed. + if config['import']['bell']: + ui.print_('\a', end='') sel = ui.input_options((u'Apply', u'More candidates') + choice_opts, require=require, default=default) if sel == u'a': diff --git a/docs/changelog.rst b/docs/changelog.rst index 3a5272a91d..013e578468 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -44,6 +44,9 @@ New features: you have in your library. Thanks to :user:`qlyoung`. :bug:`2481` * :doc:`/plugins/web` : Add new `reverse_proxy` config option to allow serving the web plugins under a reverse proxy. +* A new :ref:`bell` configuration option under the ``import`` section enables + a terminal bell when input is required. Thanks to :user:`SpirosChadoulos`. + :bug:`2366` :bug:`2495` Fixes: diff --git a/docs/reference/config.rst b/docs/reference/config.rst index 094462d2fd..7fb7c96c4f 100644 --- a/docs/reference/config.rst +++ b/docs/reference/config.rst @@ -576,6 +576,14 @@ skipped; "keep" means keep both old and new items; "remove" means remove old item; "ask" means the user should be prompted for the action each time. The default is ``ask``. +.. _bell: + +bell +~~~~ + +Ring the terminal bell to get your attention when the importer needs your input. + +Default: ``no``. .. _musicbrainz-config: