Files
Waybar/include/modules
Siriusuna 81fd9ee4ab fix(mpd): truncate before sanitization and improve tooltip UX
Fix an issue in the MPD module where text failed to render
when raw tags containing markup characters were truncated
mid-sequence after sanitization,
resulting in fragmented XML entities (such as `&` cut into `&am`).

Resolve this by shifting the order of operations to
truncate the raw strings *before* running `sanitize_string`.
To keep `setLabel` decoupled and clean,
we introduce helper methods (`getArtistStr`, `getAlbumArtistStr`,
`getAlbumStr`, `getTitleStr`) inside the `MPD` class,
matching the architectural style of MPRIS.

Additionally:
- Introduce support for the customizable `ellipsis` config option
  (defaulting to `…`).
- Switch the truncation logic of the MPD module to be
  visual-width-aware using the newly extracted
  `waybar::util::utf8_truncate`.
- Decouple the tooltip text from the main label's truncated text.
  The tooltip now displays un-truncated, complete metadata
  (properly escaped), providing a significantly better user
  experience.
2026-05-22 03:15:26 +08:00
..
2026-02-04 09:24:14 +01:00
2026-02-04 09:24:14 +01:00
2026-02-20 08:16:56 -06:00
2026-02-04 09:24:14 +01:00
2026-02-04 09:24:14 +01:00
2026-03-06 18:49:02 -06:00
2026-02-04 09:24:14 +01:00
2023-10-15 17:52:12 -03:00
2026-02-08 13:32:41 +01:00
2023-10-17 19:29:06 +02:00
2024-02-19 23:10:10 +01:00
2025-06-22 10:01:36 +02:00
2023-03-02 16:57:32 +03:00
2025-08-16 15:34:43 -07:00
2023-03-02 16:57:32 +03:00
2026-02-04 09:24:14 +01:00
2023-10-17 19:29:06 +02:00
2023-03-02 16:57:32 +03:00
2026-02-04 09:24:14 +01:00
2026-02-04 09:24:14 +01:00
2023-03-02 16:57:32 +03:00