Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Rich in the command-line interface #41

Closed
schneiderfelipe opened this issue Nov 12, 2020 · 3 comments · Fixed by #47
Closed

Use Rich in the command-line interface #41

schneiderfelipe opened this issue Nov 12, 2020 · 3 comments · Fixed by #47
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@schneiderfelipe
Copy link
Member

Rich is a "Python library for rich text and beautiful formatting in the terminal." In particular, it can also render pretty tables, which will 1. make overreact look awesome, and 2. simplify a lot the current codebase regarding the interface.

@schneiderfelipe schneiderfelipe added enhancement New feature or request good first issue Good for newcomers labels Nov 12, 2020
@schneiderfelipe schneiderfelipe added this to the 1.0 milestone Nov 12, 2020
@schneiderfelipe schneiderfelipe self-assigned this Nov 12, 2020
@schneiderfelipe
Copy link
Member Author

There is a use case that Rich does not cover, namely the insertion of sub- and superscript Unicode strings. Luckily there is unicodeit, which seems to work well with Rich (see Textualize/rich#440).

@schneiderfelipe schneiderfelipe changed the title Use Rich in the command-line interface Use Rich and unicodeit in the command-line interface Nov 20, 2020
@schneiderfelipe
Copy link
Member Author

schneiderfelipe commented Nov 20, 2020

svenkreiss/unicodeit#37 probably limits some of what I want to do, but there is a workaround: use unicodeit.net and copy its output. No need to have extra dependency.

@schneiderfelipe schneiderfelipe changed the title Use Rich and unicodeit in the command-line interface Use Rich in the command-line interface Nov 20, 2020
@schneiderfelipe
Copy link
Member Author

Closed by #47.

@schneiderfelipe schneiderfelipe linked a pull request Nov 23, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant