AnirudhG07 / rich-preview.yazi

Preview file types using rich in Yazi
MIT License
16 stars 1 forks source link

Not seeing Unicode characters in the panel border #1

Open saumyajyoti opened 2 months ago

saumyajyoti commented 2 months ago

Using latest 0.3 version on WIn11 wezterm. Seeing below look: image

AnirudhG07 commented 2 months ago

Interesting, apparently rich is taking ascii chars in Wln11, instead of rounded, inspite being specially mentioned. Can you just try each of the followings panel border type and report which works for you -

ascii, ascii2, double, heavy, none, rounded, square

How to set this- 1) Go to init.lua 2) in the arguments mentioned, you will see --panel=rounded. Instead of rounded try the mentioned above types.

Lemme know which one works for you.

saumyajyoti commented 2 months ago

Thanks for quick reply. None works with Unicode chars. I dont see a option in rich to force Unicode also.

This is the look in yazi: panel=none image

panel=heavy image

vs look in terminal outside yazi: image image

AnirudhG07 commented 2 months ago

I have already used "--force-terminal" for enforcing into Yazi. I ll look into specifications about ur emulator and maybe find a soln

AnirudhG07 commented 2 months ago

Can you confirm for some other terminal emulator, this is happening? Also can you try changing fonts of your terminal, like some other nerd-fonts.

saumyajyoti commented 2 months ago

HI @AnirudhG07 , I had same problem with Windows 11 terminal app also with PowerShell. Also with Wezterm with clink/cmd. I'll try some other nerd font and update.

AnirudhG07 commented 2 months ago

Any updates? Which font did you have previously?

saumyajyoti commented 2 months ago

Earlier I had Iosevka Nerd font. I changed to D2CodingLigature nerd font. Still see same problem.

sxyazi commented 1 month ago

Perhaps printing out the lines on Windows might help:

https://github.com/AnirudhG07/rich-preview.yazi/blob/9bcf15426140417b37d042ccbec9ecdddeacc305/init.lua#L26

AnirudhG07 commented 1 month ago

How exactly do you do that?

sxyazi commented 1 month ago

Lua has an io.write function that I thought may be used to write those outputs into a temporary file https://www.lua.org/manual/5.4/manual.html#pdf-io.write

azinsharaf commented 11 hours ago

i have the same issue with csv files:

image

AnirudhG07 commented 1 hour ago

Can you send your yazi --debug?