jonbrett / cinnamon-feeds-applet

Cinnamon applet for fetching and displaying RSS feeds
https://jonbrettdev.wordpress.com
20 stars 10 forks source link

Truncate feed item summary #26

Closed jonbrett closed 8 years ago

jonbrett commented 11 years ago

Originally reported by anandrkris on the spices website: http://cinnamon-spices.linuxmint.com/applets/view/149

Sometimes the feed summary is too long, resulting in a very large tooltip. The feed summary should be automatically truncated to a fixed number of characters to avoid such issues.

anandrkris commented 11 years ago

Thanks again. Is it too much to allow for configuration here? Need not be on UI, advanced users may want to adjust it.

jonbrett commented 11 years ago

Instead of truncating this to a fixed number of characters, how about specifying a maximum tooltip size. By keeping the current fixed tooltip width, users can specify the height (or better still the max number of lines).

Having a max height (or max number of lines if I can figure out how to do thaat) might be more useful than truncating by the number of characters.

What do you think @anandrkris ?

anandrkris commented 11 years ago

Hmm. I think number of lines makes more sense. I am not sure how lines are wrapped in tooltip and whether line breaks are honored. Lets say, if the blog is a poem then having fixed number of lines would be the best option. Of course, even in other cases lines control tooltip better. If this is not easily achievable having a configurable height is a good compromise.

jake1164 commented 8 years ago

In release 0.17 this is actually implemented and limited to a manageable size, this helps with memory management as well.