qw3rtty / neix

neix - a RSS/Atom feed reader for your terminal.
GNU General Public License v3.0
200 stars 12 forks source link

[FEATURE] renderText should support some run time variables #21

Closed DhruvaSambrani closed 2 years ago

DhruvaSambrani commented 2 years ago

Is your feature request related to a problem? Please describe. Not knowing the size of the article display area prevents rendering of well flowing text, with weird break locations.

Describe the solution you'd like Allow users to use some run time variables while calling renderText. I presume this would work like renderText=elinks -dump -dump-width %article_width% where %article_width% be replaced with the actual value before being called.

Describe alternatives you've considered A not so nice work around is to set the width to a very high value, which prevents weird breaks by not breaking text at all, and instead wrapping at non-word endings.