Image not cleared after switching tmux window
Bekaboo opened this issue · comments
After some exploration I found another issue that after switching tmux window the image in the previous window is not cleared.
Here is a short screen recording that demonstrate it:
Peek.2023-10-24.11-46.mp4
Environment:
- Terminal:
kitty 0.29.2
+tmux 3.3a
(withallow-passthrough
on) - Neovim:
NVIM v0.10.0-dev-1334+gd2d38858d1
- image.nvim:
1cb60be1cdc108e3a3b09cb0ed115ef75ce51320
- OS:
Linux 6.1.58-1-lts
Plugin config:
package.path = table.concat(
{
package.path,
vim.fs.normalize('~/.luarocks/share/lua/5.1/?/init.lua'),
vim.fs.normalize('~/.luarocks/share/lua/5.1/?.lua'),
},
';'
)
require('image').setup({
window_overlap_clear_enabled = true
})
Also the window_overlap_clear_enabled
option does not seem to work:
The link to the images, for testing purpose:
![ConvExample](https://stanford.edu/~shervine/teaching/cs-230/illustrations/convolution-layer-a.png?1c517e00cb8d709baf32fc3d39ebae67)
For a convolutional operation, the stride
**S** denotes the number of pixels by which the window moves after each operation.
![StrideExample](https://stanford.edu/~shervine/teaching/cs-230/illustrations/stride.png?36b5b2e02f7e02c3c4075a9d836c048c)
Hey, you need to set tmux_show_only_in_active_window = true
and also set -g visual-activity off
in your Tmux config.
It's all a big hack, it will try to find the tty you switched to and write the clearing control sequence to it 👀
It works, thanks for quick response!
@3rd The window_overlap_clear_enabled
still does not work, though:
After :call nvim_open_win(nvim_create_buf(0, 0), 0, { 'col':10, 'row':8, 'width':100, 'height':20, 'relative':'editor' })
(open a floating window that covers the image):
It's because the buffer has no filetype and of the window_overlap_clear_ft_ignore = { "cmp_menu", "cmp_docs", "" }
default.
Thanks, setting this option to empty table solves the problem.
Thanks, setting this option to empty table solves the problem.