mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 17:35:50 +03:00
[GH-ISSUE #389] Sixel output messed #210
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#210
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @71zenith on GitHub (Mar 5, 2024).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/389
Describe the bug
When i try to press an keychord such as
git shows the shortcut menu below Playback section.This leads to the sixel image preview getting broken. When the keychord is completed , the playback section goes to its original position but sixel isn't redrawn.
I can make it redraw the image forcefully by resizing the terminal.
To Reproduce
g l)Expected behaviour
I believe the solution could be either fixed by making the shortcut menu appear above the playback like pre
0.17.0or making the screen redraw the image when it is changedScreenshots

If applicable, add screenshots to help explain your problem.
Environment
Nix OS(Linux)0.17.0@aome510 commented on GitHub (Mar 6, 2024):
Should be fixed by #390. Can you try running from that branch?
@71zenith commented on GitHub (Mar 6, 2024):
It does redraw but leaves some artifacts and the text from before isn't cleared
@aome510 commented on GitHub (Mar 6, 2024):
I don't have this problem for
iterm2. It might happen because sixel doesn't render the image fully in the allocated area. Can you try to tweakcover_img_width,cover_img_length,cover_img_scaleto see if those configs fix the issue?Personally, I don't want to revert to the old popup behaviour in which popups are rendered above the playback (if in bottom) as it looks weird.
@71zenith commented on GitHub (Mar 6, 2024):
I tried a number of scaling options. But the text is still under the image. Maybe if there is a way to replace the section under image with spaces just like how the rest of playback is overrides the popup text

@aome510 commented on GitHub (Mar 7, 2024):
Scaling can be set to be
>1FYI, so you can make the image to cover the whole section with text artifact. Can also change length/width of the image rectangle to achieve the best-looking result. The default settings are not tuned forsixelat all as I don't really that feature.If none of the above options works, I can take another look this weekend to see if there is a better way to fix the underlying issue.
@71zenith commented on GitHub (Mar 7, 2024):
I was using a scale of 2.2 before. I have managed to cover the text besides the image. But the text below the image still shows. Im assuming this can also be covered if i were to use width and height rather than scale but I'd rather not use that cause it looks out of place without proper scaling
@aome510 commented on GitHub (Mar 10, 2024):
@71zenith figured out a better way to handle the re-draw. Can you try again with the latest change in https://github.com/aome510/spotify-player/pull/390?
@71zenith commented on GitHub (Mar 11, 2024):
I tried it but the problem still remains

@aome510 commented on GitHub (Mar 11, 2024):
Hmm super weird. That means
Cleardoesn’t clear the area.@aome510 commented on GitHub (Mar 11, 2024):
Can you share the configs you are using now, e.g what is the width/length of the cover image rectangle, width of the playback window?
@aome510 commented on GitHub (Mar 11, 2024):
@71zenith , I managed to add some hacks to reproduce your issue with
iterm2. Pushed a fix, which I strongly believe should fix the issue.@71zenith commented on GitHub (Mar 11, 2024):
@71zenith commented on GitHub (Mar 11, 2024):
Sadly it still doesnt fix it.
@aome510 commented on GitHub (Mar 11, 2024):
Does it still have text under the image or different issue with image not fully rendered, which I'm aware of and trying to fix now?
@aome510 commented on GitHub (Mar 11, 2024):
My last attempt in https://github.com/aome510/spotify-player/pull/390/commits/4f28c2e54056cc1f8ac0185f2d6802386a391359, if this still does not work. I'll revert to the old behaviour (popup above playback for bottom) then 😞 .
@71zenith commented on GitHub (Mar 11, 2024):
Image is rendered correctly but it still has text below it
@aome510 commented on GitHub (Mar 11, 2024):
Are u using the latest version of https://github.com/aome510/spotify-player/pull/390?
@71zenith commented on GitHub (Mar 11, 2024):
I am yes
@aome510 commented on GitHub (Mar 12, 2024):
Still don't understand why my latest patch didn't work for you 😕. That said, I reverted the rendering order back to before
v0.17.0so it should work now. Thank you for all the back-and-forth!@71zenith commented on GitHub (Mar 12, 2024):
@aome510 i am really really sorry. it looks like i did a build for release and was testing the binary for debug. It works perfectly with your last patch without any artifacts. I should have tested more clearly
@aome510 commented on GitHub (Mar 12, 2024):
No worries. Glad to hear that I'm not hallucinating. I can push a "revert revert" change xD