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

colorized & arg for hyfetch #2

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

nexplorer-3e
Copy link

Just set an asc arg in get_result() for pass asciiart produced by hyfetch.
As I have no idea about how python module structured, newly added colors.py file may need to move to tools/ folder.
Mostly use f-strings to speed up string production, however get_color_blocks performance is poor due to use of for-loop. More pythonic candy should apply for optimize.

- the colors.py module may need to be move to src/tools
- now using delicate qwqfetch can show color correct, but failed when combined with hyfetch's colors.
- more robust distro detector
- Fix procedure to produce colorized text with asc in (1
- Hardcoded bold text
- keep indent at zero when get_result()
- color blocks implemented using two for-loop
- remove debug output from colors.py
note that qwqfetch doesn't have debug opt by now
- minor changes to get_color_blocks()
@Aleksanaa
Copy link
Owner

Thanks for the pr!

This repo is temporarily abandoned anyway, needing mass code refactor, but I've got a lot of things to do now.In fact, the author of hyfetch is not very optimistic about these codes. I also did not consider many things when writing these codes, such as dynamically calling the C language library.

I haven't looked at your code carefully (and actually I kind of forget what shit I wrote). But I can spare some time to work on this project too if you want to contribute. Maybe within this weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants