-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Unable to copy text after copying text to unnamedplus in neovim under wayland #6890
Comments
Update to neovim 0.10 which has native osc52 support and you should be fine. Or use https://github.com/ojroques/nvim-osc52 |
@kovidgoyal Actually, I think the issue has no related with osc52, since I can reproduce the issue with no configuration about ocs52, and of cause, the problem still exists when I use nvim-osc52 or use neovim nightly. BTW, it seems the issue disappears when switching to other terminal emulators like gnome terminal or alacritty. |
Then please come up with a reproducer without nvim involved. |
@kovidgoyal You are right, the issue can be reproduced without neovim.
I doubt the issue is related to wayland, my window manager is hyprland. |
It is related to wayland and more specifically to how wl-copy works, echo hello | kitten clipboard |
Oh and incidentally your reproduction steps dont work on either gnome or kde under wayland, They work only with wl-roots based compositors. So maybe report it to sway or wl-roots, perhaps they can tell us what the issue is. |
Thanks for your advice! A feasible mitigation method at this stage is not to use wl-clipboard in kitty and modify g:clipboard in neovim, which solves my issue.
|
This fixes an issue where copying text would break until changing workspaces and consequently windows. This *was* fixed in 0.32.0 as a result of [1], however kitty 0.33.1 with the recent fontconfig workaround patch[2] ends up showing CJK characters with a very thin weight, causing them to be inconsistent relative to the surrounding text and more difficult to read. [1]: kovidgoyal/kitty#6890 [2]: kovidgoyal/kitty@d2c21ee
For reference, this was reported on tmux-yank: tmux-plugins/tmux-yank#151 |
Describe the bug
After copy text in neovim and quit, I can't copy text in kitty, unless I focus to another window and then focus back.
To Reproduce
Steps to reproduce the behavior:
nvim <file>
yy
in neovimEnvironment details
neovim version
Additional context
the issue can be reproduced with
kitty --config NONE
, and the neovim's configuration only containsset clipboard=unnamedplus
in ~/.config/nvim/init.vim. The compositor is hyprland.The text was updated successfully, but these errors were encountered: