woefe / ytcc

Command line tool to keep track of your favorite playlists on YouTube and many other places.
GNU General Public License v3.0
178 stars 20 forks source link

Truncate wide columns when terminal is too narrow #92

Closed woefe closed 3 years ago

woefe commented 3 years ago

Truncates first the duration, then publish_date, then playlists, then title depending on the "pressure" of the terminal size. With that approach the title will always stay as long as possible.

TODO:

EmRowlands commented 3 years ago

With the command line option, you could add an option to manually set the width, and using some kind of sentinel value (e.g. 0) to disable truncation.

zoidby commented 3 years ago

Just tried this and it looks much better!