Closed cathaysia closed 2 years ago
That is an error from your shell not kitty. Run cat first then paste and you will see kitty is pasting correctly.
I have the same issue with russian characters.
I copied a word from gedit into default gnome term and into the kitty term with Ctrl
+Shift
+V
.
But when I write something in kitty term in russian and copy-paste this back it looks good, not escaped.
And when I run vim inside kitty and paste in insert mode with Ctrl
+Shift
+V
, then pasted text is escaped. But if I paste from register in normal mode ("+p
), then everything is good.
Do not know where to dig.
This is not from the shell. The issue most likely comes from Firefox or Gnome/GTK.
If you copy from Firefox, it stores the actual unicode character under the clipboard targets UTF8_STRING
and text/plain;charset=utf-8
. The other targets (TEXT
, STRING
, etc) get its unicode escape, which is where kitty is reading the clipboard content from.
@emi2k01 Indeed, when I copy from Firefox to Kitty, it only gives the utf-8 codes, but when I copy from Kitty and paste into Kitty, I have the correct characters. The weird thing is that it used to work before, so I wonder what changed that made pasting from Firefox to Kitty not possible...
See #5528
Describe the bug
kitty paste chinese as utf-8 code
To Reproduce Steps to reproduce the behavior:
https://user-images.githubusercontent.com/42114817/191962738-3e4101e8-cd2e-4292-94f1-28c595f302e8.mp4
Environment details