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

Zellij prevents neovim from detecting OSC52 clipboard support #3951

Open
kika opened this issue Jan 22, 2025 · 1 comment
Open

Zellij prevents neovim from detecting OSC52 clipboard support #3951

kika opened this issue Jan 22, 2025 · 1 comment

Comments

@kika
Copy link

kika commented Jan 22, 2025

Zellij prevents neovim 0.10.* from detecting OSC52 clipboard support (which zellij supports).

Minimal reproduction

kitty (0.34.0) terminal on MacOS runs an ssh session (using kitten ssh for proper terminfo) to an ubuntu machine:

  1. Without zellij on a remote machine - no problem, neovim (nvim --clean) detects OSC52 support in kitty and installs fallback OSC52 clipboard handler
  2. In the zellij pane neovim doesn't install the OSC52 fallback clipboard handler.

I've sprinkled $VIMRUNTIME/plugins/osc52.lua with a bunch of vim.print()s and discovered that this code works differently in these two situations:

require('vim.termcap').query('Ms', function(cap, found, seq)
  if not found then
    vim.print('No term cap, return')
    return
  end
--- ....
end)

Without zellij the Ms capability is found, with it - not. The infocmp result in both sessions is exactly the same and kitty is recognized as a terminal emulator.

@loralb
Copy link

loralb commented Jan 23, 2025

Having a similar problem, where the paste keybind of my terminal emulator (tried with both ghostty and konsole) does not work when inside zellij. This happens while working on my local machine and also when working on a remote machine, connected through ssh.

zellij --version: zellij 0.41.2

Basically I can't paste text from my clipboard when inside a zellij session, no matter what I am running (text editor, shell, whatever)

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