-
Notifications
You must be signed in to change notification settings - Fork 56
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
wl-copy of one character without newline is unpastable #223
Comments
Hi, please mention which Wayland compositor you're getting this on. Are you perhaps using some clipboard manager that could be messing things up here?
You should be able to just use
So you can paste it, at least with
|
sway
nope. does it not reproduce on your end?
that works. I can do this without issues: ~> set tmp (echo -n a)
~> wl-copy $tmp
~> wl-paste
a seems to be the problem with reading from a pipe
technically, but with a twist that wl-paste should include a newline by default and it doesn't. I included this example to demonstrate that it's bugged.
~> echo -n a | wl-copy
~> wl-paste --list-types
application/octet-stream indeed, binary not textual
yes |
No.
So, this might explain it. The compositor itself is not involved; we query the file type using
but, If what you're doing is writing a shell script that uses
It's just that when you pass the text to |
I've looked into it, without a DE ~> file --brief --dereference --mime-type test
application/octet-stream
yeah, that solves it for me, thanks! |
if I wl-copy one character without newline (
echo a | wl-copy -n
or trimming manuallyecho a | tr -d '\n' | wl-copy
), I cannot paste this character.wl-paste also doesn't append newline without -n:
~$ wl-paste a~$
while it does when two or more characters without newline were copied:
The text was updated successfully, but these errors were encountered: