zellij icon indicating copy to clipboard operation
zellij copied to clipboard

Cannot paste into Helix or Neovim or Kakoune when using git version of Zellij

Open shaleh opened this issue 1 year ago • 8 comments

This has happened to me on MacOS 14.4 running kitty, iterm2, and terminal.

I have tried this with homebrew installed helix and my own local compiled version. No difference.

883855587c4c963f3037f287e5239e8cd297ab69 is the top most commit in the log.

Steps to reproduce:

  1. build zellij from git checkout -- cargo xtask dist is what I used.
  2. run this zellij
  3. start helix (you can run brew install helix if you don't have it)
  4. enter insert mode with 'i', just like vim.
  5. Press the usual Cmd+v to paste as normal on a Mac. In iterm2 I can see the Edit menu flash so it recognized the keys...

If I exit helix I can paste into the shell inside of zellij. If I start neovim installed from Homebrew I also cannot paste. Same thing, enter insert mode and Cmd+v does nothing. I just installed Kakoune from homebrew and again, cannot paste. However, if I use /usr/bin/vi I can paste. No problems. /usr/bin/vi is the older vim shipped with MacOS.

This all works just fine with the homebrew installed version of Zellij.

shaleh avatar Jun 13 '24 20:06 shaleh

I had this issue and fixed it by setting support_kitty_keyboard_protocol false in my config file, per https://github.com/zellij-org/zellij/pull/3383

Jimmyscene avatar Jun 13 '24 23:06 Jimmyscene

Hey so - I'm unfortunately not able to reproduce this. It's possible that this issue only occurs on a mac due to pasting being done with the cmd key. I do not have access to a mac, so going to ask for some help here. Does it work when pasting in a different method? (eg. with the mouse)

imsnif avatar Jul 08 '24 13:07 imsnif

Let me look at the current state of the tree and see if I can see anything. I have been using the brew version.

shaleh avatar Jul 08 '24 17:07 shaleh

Any updates?

imsnif avatar Jul 17 '24 14:07 imsnif

@imsnif Hi, Can confirm this issue no longer exist in latest main commit fe30f08.

Tested in neovim and helix, can paste.

towry avatar Jul 17 '24 15:07 towry

Thanks @towry ! Any chance you know which commit fixed it? I'll be more calm if I understand what caused this issue.

imsnif avatar Jul 17 '24 15:07 imsnif

@imsnif 5aed8daa9fcd07aa25e048e60ed40672b57d57aa fixed in this commit.

towry avatar Jul 17 '24 16:07 towry

Thanks!

imsnif avatar Jul 17 '24 16:07 imsnif