Commit graph

5532 commits

Author SHA1 Message Date
Maximilian Merz
ac03469c72 Improve comments in ui/__init__.py 2018-04-01 12:09:50 +02:00
Maximilian Merz
de7717efaa Refactor mapper functions in _colordiff
Create color mapper functions outside of the forloop.
2018-04-01 12:09:33 +02:00
Maximilian Merz
bd0b564012 Remove unused kwargs from colordiff and _colordiff 2018-04-01 12:08:54 +02:00
Maximilian Merz
87c38c18e9 add indentation to info dict
- add 'changed' key to info dict to indicate whether rhs should be displayed at all
2016-02-20 16:46:18 +01:00
Maximilian Merz
36f53ef00b move format_index to show_match_tracks 2016-02-19 17:20:42 +01:00
Maximilian Merz
8f578e4495 new make_line method
- move construction of lhs and rhs dicts to make_line
- move make_track_titles, make_track_numbers, and make_track_lengths to make_line
2016-02-19 12:59:53 +01:00
Maximilian Merz
1b424db7bc restructure format_tracks_as_columns 2016-02-19 12:59:04 +01:00
Maximilian Merz
0b1ba738ba minor whitespace change 2016-02-18 19:47:35 +01:00
Maximilian Merz
9a50224500 remove unused show_album(artist, album) 2016-02-18 19:47:14 +01:00
Maximilian Merz
1584c0720c move two methods into show_match_tracks() 2016-02-18 19:46:40 +01:00
Maximilian Merz
55493a1605 fixup comment 2016-01-27 14:46:06 +01:00
Maximilian Merz
d36fcec095 minor fixup and reordering 2016-01-25 17:35:19 +01:00
Maximilian Merz
7a8194c6f3 move column width calculation and line to new funs
- change line data model: now tuple of (info, lhs, rhs) instead of (prefix, lhs, rhs, lhs_width, rhs_width). info is a dict
2016-01-25 17:34:53 +01:00
Maximilian Merz
f3c766d084 add uncolorize and color_len functions 2016-01-25 17:28:54 +01:00
Maximilian Merz
c88f560572 fixup unicode errors 2016-01-25 17:28:10 +01:00
Maximilian Merz
605b73181c split show_change method into parts 2016-01-23 17:19:57 +01:00
Maximilian Merz
7c8ac73e5f change string to unicode; add whitespace 2016-01-23 17:17:21 +01:00
Maximilian Merz
0bb39799a4 refactor printing the match header 2016-01-23 13:04:50 +01:00
Maximilian Merz
69e2f3afd1 UI: refactor calculation of available columns 2015-11-17 21:24:38 +01:00
Maximilian Merz
9a4a15f815 UI: fixup track # alignment in column view 2015-11-17 21:24:07 +01:00
Maximilian Merz
c593327b2a UI: refactor code for change of track # or length 2015-11-17 21:22:15 +01:00
Maximilian Merz
8f44173fd6 UI: cleanup: colorize functions
- reintroduce support for legacy colors
- replace DARK_COLORS and LIGHT_COLORS with LEGACY_COLORS and map color names onto their counterpart in the new “advanced” color definition system
- also continue to support new “advanced” colors
- cleaner code (at least I think so)
2015-11-17 20:43:50 +01:00
Maximilian Merz
3ce0638077 UI: fixup typo in comment, remove debug statement 2015-11-17 20:41:54 +01:00
Maximilian Merz
bd34709499 UI: add text, text_faint colors 2015-11-17 20:41:05 +01:00
Maximilian Merz
6a006ede8f UI: change default configs for import layout 2015-11-01 23:10:24 +01:00
Maximilian Merz
3356afb2c5 UI: Always show disk info in tracklist 2015-11-01 23:08:37 +01:00
Maximilian Merz
ced7dc48ee UI: Add config options to set match indentation 2015-11-01 22:29:47 +01:00
Maximilian Merz
42f55b1bba UI: Implement two layouts for track changes 2015-11-01 21:17:41 +01:00
Maximilian Merz
e9caa7a6f7 UI: Apply ANSI styles to import task path string 2015-11-01 19:25:19 +01:00
Maximilian Merz
d70802286c UI: Change candidate selection view 2015-11-01 19:23:55 +01:00
Maximilian Merz
c541ec8229 UI: Change show_change header style
- more concise format
2015-11-01 19:18:27 +01:00
Maximilian Merz
238efe525c UI: Prefix penalties string with NOT EQUAL TO sign 2015-11-01 19:17:15 +01:00
Maximilian Merz
daf635a96b UI: Add dist_colorize function
- colors arbitrary strings according to a distance
- refactor dest_string
2015-11-01 19:16:09 +01:00
Maximilian Merz
6a556c95d1 UI: Separate disambiguation elements with pipe 2015-11-01 19:14:16 +01:00
Maximilian Merz
6b1f215738 UI: place ANSI codes at word borders in _colordiff
- when linebreaking, ANSI codes should end at word borders
- this removes change markers for whitespace!
2015-11-01 19:13:17 +01:00
Maximilian Merz
f43a5c8b56 UI: fixup color names 2015-11-01 19:11:04 +01:00
Maximilian Merz
6bb68983ab UI: Colorize prompt 2015-11-01 19:10:07 +01:00
Maximilian Merz
1cf39db538 UI: Add ui.indent() method
for easy indentation and alignment
2015-11-01 19:09:22 +01:00
Maximilian Merz
a9ed100012 UI: Add more ANSI colors
- Add ANSI styles, colors and background-colors
- Modify colorize functions to adopt new colors
- Modify default configuration to adopt new color scheme:
   - Define colors by arrays with their ANSI codes as strings
- Deprecated DARK_COLORS and LIGHT_COLORS
2015-11-01 17:25:27 +01:00
Adrian Sampson
5f5a8946c3 convert: Debug log when embedding images
To help diagnose #1671.
2015-10-30 15:25:01 -04:00
Adrian Sampson
16ad174d29 A debug message for ReplayGain 2015-10-29 17:43:31 -04:00
Frederik “Freso” S. Olesen
0fbd8d2dfb lastgenre: Clean up of the reggae related genres.
Fixes #1661.
2015-10-29 05:06:40 +01:00
Frederik “Freso” S. Olesen
41cbb47918 Add changelog entry for #1661. 2015-10-29 05:04:59 +01:00
Frederik “Freso” S. Olesen
5f5365021d lastgenre: Clean up Spanish reggae in the genre list.
* Add missing subgenres to whitelist and tree.
* Use proper terminology.
  * Add English term as child of Spanish one.

Source: https://en.wikipedia.org/wiki/Reggae_en_Espa%C3%B1ol
2015-10-29 05:00:33 +01:00
Frederik “Freso” S. Olesen
1aa808f37b lastgenre: Add raggamuffin.
Already recognised by the genres.txt whitelist, and is a more proper
term for `ragga`.

https://en.wikipedia.org/wiki/Ragga
2015-10-29 04:58:44 +01:00
Frederik “Freso” S. Olesen
1678c1d847 lastgenre: Replace top-level genre ska with reggae
… and move relevant genres from the tree to be children of the `reggae`
top-level genre as well as add `roots reggae` to the list.

See discussion at https://github.com/sampsyo/beets/issues/1661
2015-10-29 04:55:57 +01:00
Frederik “Freso” S. Olesen
b187251a7e lastgenre: Remove dance hall and polish reggae.
Neither of the two are recognised in the genres.txt whitelist.
2015-10-29 04:53:14 +01:00
Frederik “Freso” S. Olesen
004fb7d1c8 lastgenre: Fix up ragga jungle.
* Move `ragga jungle` to beneath `oldschool jungle`.
* Remove `ragga-jungle` which isn't recognised by the genre whitelist.

https://en.wikipedia.org/wiki/Ragga_jungle
2015-10-29 04:44:15 +01:00
Adrian Sampson
2537c06ac7 Changelog for #1652 fix 2015-10-24 13:09:15 -07:00
Adrian Sampson
4c6dbe6780 Remove seen_idents set
This was used since time immemorial to keep track of recently-imported music
that hasn't hit the database yet. I created it when the importer only added
music to the database at the end of the pipeline, after doing all the work to
manipulate the metadata. Now, for several reasons, we add the music
immediately after the user sees it and then manipulate the records *in the
database*. With the latest change, which gets rid of the last separation
between UI and database-adding, we no longer need to do this.
2015-10-24 13:06:16 -07:00