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

feat: Chafa integration #1066

Merged
merged 2 commits into from
May 20, 2024
Merged

feat: Chafa integration #1066

merged 2 commits into from
May 20, 2024

Conversation

sxyazi
Copy link
Owner

@sxyazi sxyazi commented May 20, 2024

In previous versions, Yazi has been using Chafa provided by Überzug++ with the aim of minimizing external dependencies installed by users.

However, in practice, Überzug++ is not always available. It needs to obtain the pixel dimensions of the terminal when starting up, and in some terminal/desktop environments, it fails to do so, this results in Überzug++ crashing on startup, and is also not available on Windows.

But Chafa does not have these issues, so in Yazi v0.3, Chafa is added as an optional dependency and takes over ASCII art preview.

Also resolves #777

@sxyazi sxyazi merged commit d4e179b into main May 20, 2024
6 checks passed
@sxyazi sxyazi deleted the pr-762943c2 branch May 20, 2024 18:40
sxyazi added a commit that referenced this pull request May 20, 2024
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.

Support symbols for image previewing
1 participant