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

[Bug] Splitting tmux window makes images mis-positioned #64

Closed
Bekaboo opened this issue Oct 24, 2023 · 2 comments
Closed

[Bug] Splitting tmux window makes images mis-positioned #64

Bekaboo opened this issue Oct 24, 2023 · 2 comments

Comments

@Bekaboo
Copy link

Bekaboo commented Oct 24, 2023

Environment:

  • Terminal: kitty 0.29.2 + tmux 3.3a (with allow-passthrough on)
  • Neovim: NVIM v0.10.0-dev-1334+gd2d38858d1
  • image.nvim: 1cb60be1cdc108e3a3b09cb0ed115ef75ce51320
  • OS: Linux 6.1.58-1-lts

Minimal plugin config:

require('image').setup({
  backend = 'kitty',
  window_overlap_clear_enabled = true,
  tmux_show_only_in_active_window = true,
})

Steps to reproduce:

  1. Open kitty terminal

  2. Execute tmux

  3. Using nvim with image.nvim installed and configured to open a markdown file with contents

    ![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)
  4. Split current tmux window horizontally or vertically

  5. Images get misplaced

Screenshots:

  • Before splitting:

    Screenshot_20231024_154533

  • After splitting (first image goes to the new tmux pane at bottom, second image disappears):

    Screenshot_20231024_154552

@3rd
Copy link
Owner

3rd commented Oct 24, 2023

✔️ wawaweewa
It's still gonna be weird if you resize the Neovim pane while a different one holds the focus, but works great if you don't do that.

image-tmux-split.mp4

@3rd 3rd closed this as completed Oct 24, 2023
@Bekaboo
Copy link
Author

Bekaboo commented Oct 25, 2023

Works great, thanks!

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

2 participants