Hello, When the "CLIPBOARD buffer" is changed, for example when hitting "CTRL+C" in an application, the "PRIMARY selection" is not updated by Clipman, even if synchronization is activated in Clipman. Therefore, it is not possible to paste the content in a terminal by pressing the Middle Mouse Button. Example: If I click on a cell in LibreOffice Calc, and if I copy the content of the cell with "CTRL+C", only the "CLIPBOARD buffer" is changed and I am unable to paste the text in a terminal because the "PRIMARY selection" is not updated. - Is it the expected behavior? - How to paste what was selected with "CTRL+C" when the "PRIMARY selection" is not updated? - Could there be a setting to synchronize in the direction from "CLIPBOARD" to "PRIMARY selection"? Olivier --- Clipman 1.4.3 Xfce 4.12 (Debian)
Please check if this fixes the problem: https://git.xfce.org/panel-plugins/xfce4-clipman-plugin/commit/?id=e448e1e0d3c0da602f6251fe11787aeb572325b8
Hi, while I'm not the original reporter I noticed the changed behaviour with 1.6.x and it seems to me you introduced a different issue with this: when sync mouse selections is enabled it becomes impossible to select and overwrite anything with something from the clipboard, for example assume you want to rename a file in thunar to something from your clipboard: pressing F2 opens the rename dialog and the filename is pre-selected, if you now try to paste (doesn't matter if CTRL+V or middle-click), what's inserted isn't the content from your clipboard but the old filename that was highlighted automatically. This is especially confusing because the panel plugin still shows the old clipboard content and not what was "copied" by the selection. I hope this makes sense and you can see how this seems like unexpected behaviour.
I guess where I wanted to go with this is that: - CTRL+V should always paste what's in the clipboard, not what's in the mouse buffer - middle click should paste what is in the clipboard, unless something is currently selected
To be honest I feel the behavior of "Sync mouse selection" is now consistent as to before it was erratic (i.e. not really taken into consideration). Also, I just tried to reproduce (and yes, I can) but the selected content is shown in the clipboard history as latest item. So while I understand your point: What else would you expect from a setting of this name? (On a side-note: it is still possible to overwrite the selected text with the clipboard content when using the "Paste instantly" option and selecting whatever you want to paste from the clipboard history.)
@Marcel: - If I understand your first message correctly, it seems that you are criticizing the automatic copy of the "PRIMARY selection" to the "CLIPBOARD". I would like to point out that I was not talking about this direction in my original report. Also, note that you can deactivate this behavior by unchecking "Synchronize selections" in the Clipman properties (at least, this is the case in the version 1.4.4 of Clipman that I currently use). - I think I agree with your last message. But what about the behavior I am facing with LibreOffice Calc ? What should be the right behavior? - What I was suggesting is the additional of a supplementary _setting_ in "Clipman", which the user could turn on if he wants, and not a systematic behavior. More precisely, what I suggest is to have this choice in the "Properties" : * Synchronize "PRIMARY selection" to "CLIPBOARD" : yes/no * Synchronize "CLIPBOARD" to "PRIMARY selection" : yes/no Best regards, Olivier --- Clipman 1.4.4 Xfce 4.12 (Debian) Notes : - A useful reference about selections is the link https://specifications.freedesktop.org/clipboards-spec/clipboards-latest.txt - If my suggestion is considered to be interesting and is implemented, care should be taken to avoid an infinite loop when both choices are "yes" ;-)
> Example: If I click on a cell in LibreOffice Calc, and if I copy the content of the cell with "CTRL+C", only the "CLIPBOARD buffer" is > changed and I am unable to paste the text in a terminal because the "PRIMARY selection" is not updated. Just to make sure we're not having a misunderstanding: with the new version 1.6.1 you can set "instant paste" to "Shift+Ins" and then use that to paste to the terminal. The obvious alternative is to use the appropriate keyboard shortcut Ctrl+Shift+V. I'm not sure if users understand the current - "simple" - bidirectional sync of clipboards and if two one-way sync options would make this behavior more clear. What we have recently added to the menu (not to the history search yet) is a visual indicator of what the clipboard holds vs. what the primary holds. Please test git master to see this (or wait patiently for 1.6.2).
> with the new version 1.6.1 you can set "instant paste" to "Shift+Ins" and then use that to paste to the terminal. I think I can already use the "instant paste" with Clipman 1.4.4, but: (1) This requires opening the Clipman history, which is not a thing I want to do frequently (2) It assumes that the desired text is present in the history, and my problem is that it is absent. > The obvious alternative is to use the appropriate keyboard shortcut Ctrl+Shift+V Good point. However, this works with some terminals, but not with `xterm`. > I'm not sure if users understand the current - "simple" - bidirectional sync of clipboards and if two one-way sync options would make this behavior more clear. I wouldn't say the current sync is bidirectional (at least with the version 1.4.4 that I am using), because it is only doing the synchronization from "PRIMARY selection" to "CLIPBOARD" (the problem I am facing with LibreOffice Calc is an example of the lack of the reverse synchronization). The two choices as I presented them have the advantage to be explicit. Explicit control is always a good thing, in my opinion.
-- GitLab Migration Automatic Message -- This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/panel-plugins/xfce4-clipman-plugin/-/issues/23. Please create an account or use an existing account on one of our supported OAuth providers. If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev