bugaevc / wl-clipboard

Command-line copy/paste utilities for Wayland
GNU General Public License v3.0
1.62k stars 59 forks source link

wl-paste pastes Windows end of line characters #87

Closed pierreprinetti closed 4 years ago

pierreprinetti commented 4 years ago

I am using wl-clipboard on SwayWM on Fedora 32.

Whenever I copy some text from Firerox (running with MOZ_ENABLE_WAYLAND=1), and paste into neovim (set clipboard=unnamedplus), I get Windows end-of-lines.

I can now write :%s/CTRL-V+CTRL-M// faster than my own name.

How do I stop carrying CRLFs around?

Thanks!

❯ uname -a
Linux rh2 5.6.15-300.fc32.x86_64 #1 SMP Fri May 29 14:23:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
❯ wl-copy --version
wl-clipboard 2.0.0-beta
bugaevc commented 4 years ago

Hi, CRLFs is what Firefox actually copies. This is a GTK issue, you can follow it here: https://gitlab.gnome.org/GNOME/gtk/-/issues/2307

pierreprinetti commented 4 years ago

@bugaevc Thank you!