You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is easy to diff two files or two texts and receive highlighting results in the terminal with tools like diff or git-diff. But it is hard to finish during the python process. Even though Python provides a native library called difflib, still it is a long way to go to print the result in the console simply.
I would like to know will the rich support this function.
What problem does it solve for you?
This could simply be the whole process with fewer libraries and the diff results can be reorganized with the whole pipeline. Thus the result can be printed easily by rich.Console.
The whole process may be like:
How would you improve Rich?
It is easy to diff two files or two texts and receive highlighting results in the terminal with tools like diff or git-diff. But it is hard to finish during the python process. Even though Python provides a native library called difflib, still it is a long way to go to print the result in the console simply.
I would like to know will the
rich
support this function.What problem does it solve for you?
This could simply be the whole process with fewer libraries and the diff results can be reorganized with the whole pipeline. Thus the result can be printed easily by
rich.Console
.The whole process may be like:
Also, it can be invoked in the terminal. Like:
The text was updated successfully, but these errors were encountered: