Textualize / rich

Rich is a Python library for rich text and beautiful formatting in the terminal.
https://rich.readthedocs.io/en/latest/
MIT License
49.58k stars 1.73k forks source link

[REQUEST] Global settings/theming config #3208

Open YodaEmbedding opened 1 year ago

YodaEmbedding commented 1 year ago

How would you improve Rich?

Implement a global per-user config that resides in ${XDG_CONFIG_HOME}/rich/config.toml (e.g., ~/.config/rich/config.toml) that can control settings like theming.

What problem does it solve for you?

  1. No longer required to modify the project's source code at all. Thus, the source code does not need to mention rich at all. This is good when, e.g., the user does not own the project but still wants rich tracebacks with their preferred style.
  2. The same theme is now available for all projects on the user's system, with no modification required to every project or file.
  3. Users can now choose alternatives to rich if they want.
github-actions[bot] commented 1 year ago

Thank you for your issue. Give us a little time to review it.

PS. You might want to check the FAQ if you haven't done so already.

This is an automated reply, generated by FAQtory