colordiff could have special rules for IDs and numeric/date fields #3919
RollingStar
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
That's a good idea! Highlighting for numbers and dates could get complicated, but at the very least not attempting a "string diff" on IDs seems like a good idea. 😃 Would you mind opening a feature request issue? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Today the importer gave me a new MBid for an album. It's just a UUID like 39e73e7d-a25a-43b7-aa81-0035e9478950, unreadable. The string rules for the highlighter will still color same characters the same color.
Great for strings, not for IDs. I propose a simple
[color 1] -> [color 2] for IDs. Even when an "e" is in ID 1 and ID 2. Color them differently.
For numeric and date fields, we could have highlight rules for [new value is lower] and [new value is higher].
https://github.com/beetbox/beets/pull/3721/files#diff-9e6736f74918c0608860bf8ce0d4d9b3333adaa2025f7b7b4d28189cf64c1958R653
beets/beets/ui/__init__.py
Line 552 in e1a901d
Beta Was this translation helpful? Give feedback.
All reactions