* add configurable column widths
* reorder to match config file
* fix possibly misleading documentation
* fix crash when integer out of bounds
* parse config string during initial processing
* use std::bind with length of list
* fix division by zero error
* use list_of
* change escaped_list_separator variable names
* In #259 users request the ability to have ncmpcpp remain open when the
terminal has a small size. Previously ncmpcpp would exit when there
were less than 30 columns or 5 rows.
* After removing this constraint, ncmpcpp would freeze when terminal
sizes went below those thresholds.
* Upon debugging, it became clear that ncmpcpp wasn't frozen, it was
stuck in a very long for loop because it thought the display was
unreasonably large (resulting from integer overflow).
* Preventing that overflow allows ncmpcpp to handle small sizes
gracefully. No other changes to the rendering code were necessary.
Fixes#259
- use `Statusbar::print{,f}` instead of `Statusbar::put` for
non-blocking status messages
- display number of items added
- display of non-zero exit codes of youtube-dl
youtube-dl [0] is a "command-line program to download videos from
YouTube.com" and many other websites, e.g. media libraries of public
broadcasters.
This commit adds a new action to ncmpcpp's playlist view: Pressing 'D',
prompts for the URL of a website. The input is passed to youtube-dl to
retrieve the URL of the audio stream and available metadata. If
successful, the URL is added to the MPD playlist.
[0]: https://github.com/ytdl-org/youtube-dl
Although this can already be set via mpd_host, having a separate option
is cleaner, and doesn't require setting the host when ncmpcpp already
detects it correctly.