-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
kitty +kitten clipboard -g should not read stdin #6302
Comments
I dont understand the issue. As the docs say, in filter mode, the kitten If there is some problem I am not seeing feel free to comment further. |
The problem actually rose from a piece of vimscript I tried to write:
The intention is that when I hit |
Use kitten clipboard -g /dev/stdout |
I've already tried this with some side effect. :-) If you, in another kitty terminal, do this: But, if you go to an X11 application, say FireFox, and copy some text there and go back to the vim session, then I am quite sure |
Works for me with kitten clipboard <<< test Your issue is likely caused by the bug fixed in 73f10aa However, thinking about it, I suppose even in filter mode |
If you run these 2 commands in shell, then no problem; the problem only occurs in the context of vimscript. |
Describe the bug
According to the documentation,
kitty +kitten clipboard --get-clipboard
can be used to get text from clipboard. However, if stdin is passed, it will continue to set the content of stdin to the clipboard before returning the newly set content.To Reproduce
Steps to reproduce the behavior:
kitty +kitten clipboard <<< "test"
kitty +kitten clipboard -g
# this correctly returns testkitty +kitten clipboard -g <<< "test again"
kitty +kitten clipboard -g
# this incorrectly returns test againAdditional context
kitty 0.28.1 on Fedora 38
The text was updated successfully, but these errors were encountered: