Linux clipboard
default LXM clipboards
in cinamon = gtk clipboard = standard gnome clipboard ( = x11 clipboard ? )
- only copy and paste
- only text
there are 2 or 3 types of default clipboards in Unix/Linux (depneding on which system)
! See https://wiki.archlinux.org/index.php/clipboard
- PRIMARY
used for :
- the currently selected text (text only) , even if it is not explicitly copied
- middle-mouse-click pasting
in some cases, pasting is also possible with a keyboard shortcut. (with Ctrl-X/C/V only ?)
- SELECTION
Used for explicit copy/paste commands involving keyboard shortcuts or menu items.
behaves like the single-clipboard system on Windows.
Unlike PRIMARY, it can also handle multiple data formats.
(mouse selected text, inserted with Shift-Insert or clicking the mouse middle button).
- SECUNDARY ; on some systems
copy paste
linux clipboard managers
extend / replcae the default linux clipboard wtih : copy history , other mime-types , etc
there is default in linux mint no clipboard manager installed.
( er is een request #9192 voor add clipboard manager to default Cinnamon setup , zie https://github.com/linuxmint/cinnamon/issues/9192 )
research
diodon , clipit , e.a.
Gpaste, Parcellite, ClipIt and Keepboard : handle only text/plain , not text/hml , images ect.
==CopyQ==
lijkt me de beste
https://github.com/hluk/CopyQ/releases
bit flakey with the WebAPI copy command.
https://www.makeuseof.com/manage-linux-clipboard-using-copyq/
mogelijk heid om clippets /notes => te gebruiken als een micro-editor ? (just copy /paste , retype etc , but no save etc)
non text mime type handling
How do I paste HTML to the clipboard so that it is recognized as HTML in applications such as Open Office and MS Word? It is possible when using gtkhtml or gecko if you’ve already rendered it, but I need a straight GTK+ solution.
You call gtk_clipboard_set_with_data or gtk_clipboard_set_with_owner, passing a GtkTargetEntry with “text/html” as the value for the target field.
It’s good practice to also provide “UTF8_STRING” and “STRING” targets for applications that don’t support HTML.
Here’s an example of some code that does this: GEdit HTML clipboard plugin.
copy/cut/ paste key keyboard shortcuts
zie :