From e9caa7a6f7ae7d69fee586a53c11c6257d6a49bb Mon Sep 17 00:00:00 2001 From: Maximilian Merz Date: Sun, 1 Nov 2015 19:25:19 +0100 Subject: [PATCH] UI: Apply ANSI styles to import task path string --- beets/ui/commands.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/beets/ui/commands.py b/beets/ui/commands.py index ff7c7581b..c508cd64e 100644 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -689,8 +689,11 @@ class TerminalImportSession(importer.ImportSession): """ # Show what we're tagging. print_() - print_(displayable_path(task.paths, u'\n') + - u' ({0} items)'.format(len(task.items))) + path_str0 = displayable_path(task.paths, u'\n') + path_str = ui.colorize('import_path', path_str0) + items_str0 = u'({0} items)'.format(len(task.items)) + items_str = ui.colorize('import_path_items', items_str0) + print_(' '.join([path_str, items_str])) # Take immediate action if appropriate. action = _summary_judment(task.rec)