howdoi icon indicating copy to clipboard operation
howdoi copied to clipboard

Improved answer layout in the terminal

Open gleitz opened this issue 4 years ago • 2 comments

Description

Somewhat similar to https://github.com/gleitz/howdoi/issues/430, could we have a better layout in the terminal when you're picking multiple answers, or looking at different positional answers.

Might get some inspiration from https://github.com/santinic/how2

gleitz avatar Oct 04 '21 16:10 gleitz

We can potentially use a Python library called - rich to add text formatting to the answers (colours, boxes around answers for a cleaner look, progress bars etc.)

theairbend3r avatar Oct 05 '21 16:10 theairbend3r

  • Replace RED manual colorization with rich's version
  • We currently use pygments - what if we used rich? (is it better? different?)
  • Could we use rich code formatter for code snippets?

gleitz avatar Oct 25 '21 16:10 gleitz

This is fixed with the rich additions https://github.com/gleitz/howdoi/commit/88873b5c5ee000986fd71242ba069b05547e7e5e

gleitz avatar Nov 12 '22 17:11 gleitz