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

Kitty paste_from_clipboard + <cmd-v> interaction #7191

Closed
luisjakon opened this issue Mar 4, 2024 · 1 comment
Closed

Kitty paste_from_clipboard + <cmd-v> interaction #7191

luisjakon opened this issue Mar 4, 2024 · 1 comment
Labels

Comments

@luisjakon
Copy link

Describe the bug
Kitty does an amazing job at mapping keyboard codes. For the most part everything works out the box.

However, when using map cmd+v paste_from_clipboard in the kitty.conf, pasting onto nvim works fine in insert mode, but appends after the first character in normal mode.

I have looked around and cannot figure out how or where to make the changes. It would be an amazing feat to overcome this final annoyance without having to retort to muscle memory to remember normal mode and insert modes paste differently.

I understand this may not be a kitty problem, but I think the problem is so close to an out-of-the-box experience that it should be at least documented somewhere here if a solution can be found. Many thanks for all the great work!

To Reproduce
Steps to reproduce the behavior:

  1. kitty --debug-input --config=NONE vim -u NONE
  2. Copy/Paste anything to the app in normal and insert mode
  3. Note the location of the cursor and the differences in paste output to screen
@luisjakon luisjakon added the bug label Mar 4, 2024
@kovidgoyal
Copy link
Owner

That will be a bug in nvim. Report it there. When pasting, a terminal
emulator simply sends the text in the clipboard to the program running
inside it over STDIN. If the program indicates it supports bracketed
paste the terminal emulator wraps the text in bracketed paste escape
codes. nvim should:

  1. indicate it supports bracketed paste in both normal and insert modes
  2. detect a bracketed paste text received over stdin and paste it
    correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants