image.nvim icon indicating copy to clipboard operation
image.nvim copied to clipboard

Wezterm Sticky Image

Open 00y300 opened this issue 1 year ago • 1 comments

I am using WezTerm with the Kitty Image Protocol, but I am experiencing an issue where the image does not disappear when my cursor moves away. Instead, the image stays and gets cut off.

https://github.com/3rd/image.nvim/assets/72098565/5759820f-4215-4a78-9794-3a2ef0e2bdab

Here is my ~/.wezterm.lua configuration file:

local wezterm = require("wezterm")
local config = {}

-- Theme
config.color_scheme = "Catppuccin Mocha"

-- Font Sizes
config.font = wezterm.font("Hurmit Nerd Font Mono")
config.font_size = 18

-- Setting the Image Protocol
config.enable_kitty_graphics = true

return config

00y300 avatar Jun 29 '24 04:06 00y300

Hey, Wezterm's implementation of Kitty's graphics protocol has issues (and bad performance), which is whybwe don't support it.

3rd avatar Jun 29 '24 15:06 3rd

any workaround for this? i saw somebody downloading the kitty terminfo and setting $TERM to xterm-kitty and $TERM_PROGRAM to the same thing solved image spliting. I tried the same thing but the image is still sticky and becomes laggy when moving around

chuan2984 avatar Oct 13 '24 03:10 chuan2984

Things seem more stable in WezTerm now, hope it works now - closing this as WezTerm is not supported directly.

3rd avatar Nov 09 '24 21:11 3rd

Hey @chuan2984 did you by chance manage to fix this?

justicenyaga avatar Dec 01 '24 03:12 justicenyaga

@justicenyaga refer to this. It didnt work at first, but upon a few more attempts, restarting stuff. I think its been working. give it a try, and let me know how it goes

chuan2984 avatar Dec 03 '24 03:12 chuan2984

Thanks. I'll check it out.

justicenyaga avatar Dec 03 '24 03:12 justicenyaga