Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.39k stars 166 forks source link

clipboard partitioned between CudaText-Qt flatpak and rest of system #5520

Closed chaserene closed 3 days ago

chaserene commented 1 month ago

CudaText-Qt flatpak 1.212.1.4--1.214.5 (at minimum, maybe from even earlier) GNU/Linux Debian 12 + Gnome + Wayland

it's as if CudaText uses a separate clipboard from the rest of the system. in both "partitions" I can simultaneously have different content on the clipboard and insert it there, but I can't copy/paste content between the two in either direction.

this used to work in an earlier version in the same environment.

Alexey-T commented 1 month ago

Reported to https://github.com/flathub/io.github.cudatext.CudaText-Qt/issues/7

JordanL2 commented 1 month ago

Can't reproduce on Plasma+Wayland, by copying and pasting with Ctrl+C, Ctrl+V. Can copy from Cudatext to any other application (tried Firefox(Flatpak) and Foot) and back again. Will try in a Gnome VM later.

Highlighting text in Cudatext doesn't let me middle-click-paste it in another app, but I don't think that's ever worked. I can highlight text in another app and middle-click-paste it into Cudatext though.

Alexey-T commented 1 month ago

Highlighting text in Cudatext doesn't let me middle-click-paste it in another app, but I don't think that's ever worked.

This mentions the option which must be used: https://wiki.freepascal.org/CudaText#Paste_with_middle-button-click

JordanL2 commented 1 month ago

Highlighting text in Cudatext doesn't let me middle-click-paste it in another app, but I don't think that's ever worked.

This mentions the option which must be used: https://wiki.freepascal.org/CudaText#Paste_with_middle-button-click

Even with these options in user.json:

  "mouse_middle_click" : 2,
  "auto_copy_clp": true,

I can't select text in CudaText and middle-click-paste to another app. I still have to copy with Ctrl+C.

It also doesn't work with the CudaText qt5 AUR, or the gtk2 AUR.

But this is a different issue so probably shouldn't go off-topic about it here.

Alexey-T commented 1 month ago

Even with these options in user.json: "mouse_middle_click" : 2, "auto_copy_clp": true,

2nd option value is wrong. It must be string of few chars:

default.json:

JordanL2 commented 1 month ago

Got it thanks, it's working now (in flatpak).

Alexey-T commented 1 month ago

@JordanL2 Can you try to repro it on user's config: GNU/Linux Debian 12 + Gnome + Wayland ?

JordanL2 commented 1 month ago

I'll try to set up a VM at some point, yes.