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

image does not flush on tmux session #233

Open
fm39hz opened this issue Oct 30, 2024 · 7 comments
Open

image does not flush on tmux session #233

fm39hz opened this issue Oct 30, 2024 · 7 comments

Comments

@fm39hz
Copy link

fm39hz commented Oct 30, 2024

  • I enabled rendered at cursor, and it work flawlessly when on kitty terminal, but in tmux the image does not flush whatsoever, and will still show the image on every panel then keep spawning this error
    image
    image
    image
  • here is my plugin and tmux config:
return {
	{
		"3rd/image.nvim",
		ft = { "markdown", "quarto", "vimwiki" },
		dependencies = { "leafo/magick" },
		opts = {
			integrations = {
				markdown = {
					clear_in_insert_mode = true,
					only_render_image_at_cursor = true,
				},
			},
			html = {
				enabled = true,
			},
			editor_only_render_when_focused = true,
			window_overlap_clear_enabled = true, -- auto show/hide images when the editor gains/looses focus
			tmux_show_only_in_active_window = true,
		},
	},
}
set-option -a terminal-features 'xterm-256color:RGB'
set-option -g status-position top
set -gq allow-passthrough on
set -g visual-activity off
set -ga update-environment TERM
set -ga update-environment TERM_PROGRAM
@3rd
Copy link
Owner

3rd commented Nov 2, 2024

Wasn't able to reproduce this, do you have anything special / shell wrappers / something different going on?
Kitty + tmux works ok for me.

@uTkArShVeRm4
Copy link

Same issue using tmux + kitty, works flawlessly without tmux on wezterm and kitty terminal. I am running it on m1 macbook pro.

@RUGMJ
Copy link

RUGMJ commented Nov 23, 2024

Same issue here, running outside of tmux on kitty works fine but with tmux the image stays

@b0o
Copy link
Contributor

b0o commented Nov 23, 2024

Same issue here, works in ghostty (which supports kitty image protocol), but images get stuck with tmux + ghostty.

Update: it seems to not happen in a fresh tmux session, but it was happening in a session I had running for a while. Not sure what was different about that one.

@reynard93
Copy link

i got the same issue as well. am using leetcode.nvim and have the questions with images rendered on the side, even after closing the buffer and window it is stuck to my terminal on all the tmux sessions and on all my subsequent windows in the same place

@ficcdaf
Copy link

ficcdaf commented Dec 4, 2024

I had this problem and setting tmux_show_only_in_active_window = true fixed it.

@SimonYde
Copy link

SimonYde commented Jan 2, 2025

Any update on this? following the proposed solution by @ficcdaf didn't work for me, as I actually have it set already :/

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

No branches or pull requests

8 participants