howl-editor / howl

The Howl Editor
http://howl.io
Other
713 stars 68 forks source link

Pasting from clipboards managers don't work correctly #575

Open megatux opened 4 years ago

megatux commented 4 years ago

This only happened to me with Howl, no other program. I use a clipboard manager to have a history of texts & reuse them. Selecting an old item and pasting it from clipboard does not paste the selected text, but the previously selected one, I think. Leave a screencast. ezgif-4-648c13527d34

nilnor commented 4 years ago

Hmm, think I might have an idea. What cm do you use?

megatux commented 4 years ago

Diodon inside elementaryOS

megatux commented 3 years ago

@nilnor any updates on this? Can I help with anything else? This is my main issue with the editor, as it's harder to use it for daily work. Thx!

megatux commented 2 months ago

Same happens on Wayland. Tried with Niri compositor + clipman.

nilnor commented 2 months ago

@megatux In general development has been slow, but I have made progress with a Gtk-4 port which I use myself and what will eventually become the next release. I won't be doing anything for the old Gtk-3 version, but it would be interesting to hear how it works there if you have the time at some point. The work is being done in the gtk-4 branch, but it's rough still with only the Steinom theme ported so far.

megatux commented 2 months ago

Great to know there is a newer branch, with gtk4!. I just tried it, and the issue seems to be there, too.

nilnor commented 2 months ago

How do you invoke the pick and paste?

megatux commented 2 months ago

Right now, I'm using

cliphist list | wofi -S dmenu | cliphist decode | wl-copy

with wl-paste --watch cliphist store watching clipboard events.

Just tested with two editors and Firefox, and only Howl has this issue (gtk4 branch).

nilnor commented 2 months ago

Seems to be the case that we manage to synchronize the clipboard before the store from the clip manager was done. I added a slight delay for the syncing, which seem to work for me locally when I tried it with clipman. Try it out when you have the time (as with everything going forward, it's in the gtk-4 branch).

megatux commented 2 months ago

Seems to work fine now 💪🏼. Is it something easy to backport to main branch?

nilnor commented 2 months ago

Yes, just use the change for application.moon from here: https://github.com/howl-editor/howl/commit/b4ca38376e7fdaba538268ca8f3cbf93aabb72e0