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
I'm wondering if it'd be possible to remove the flicker that occurs when transitioning between previews. Transitions between text previews are essentially flicker-free once they're cached, but image previews are just never fast enough for it not to flicker and it's really jarring.
I had a preview script for nnn (unfortunately lost), but it had some experimental trickeries to eliminate flickering.
For images, it was simple, I just used kitty +kitten icat --image-id 1. This will replace any previous image occupying the id without any flickers.
For text, it was really hacky. I used tmux to run the previewer and wait until it's done. Then the output (along with all the escape codes) is print to the preview screen, overwriting anything that was on it. To make sure any leftovers from previous previews are cleaned up, I sent an ANSI sequence that clears everything from the cursor position to the end of the screen.
I'm wondering if this could be implemented more elegantly in ctpv. But the idea is simple, don't clear the screen until the output is completely ready.
The text was updated successfully, but these errors were encountered:
I'm wondering if it'd be possible to remove the flicker that occurs when transitioning between previews. Transitions between text previews are essentially flicker-free once they're cached, but image previews are just never fast enough for it not to flicker and it's really jarring.
I had a preview script for
nnn
(unfortunately lost), but it had some experimental trickeries to eliminate flickering.For images, it was simple, I just used
kitty +kitten icat --image-id 1
. This will replace any previous image occupying theid
without any flickers.For text, it was really hacky. I used tmux to run the previewer and wait until it's done. Then the output (along with all the escape codes) is print to the preview screen, overwriting anything that was on it. To make sure any leftovers from previous previews are cleaned up, I sent an ANSI sequence that clears everything from the cursor position to the end of the screen.
I'm wondering if this could be implemented more elegantly in
ctpv
. But the idea is simple, don't clear the screen until the output is completely ready.The text was updated successfully, but these errors were encountered: