Display (show on screen) the content of an item in the Clipboard History (by index number)?
Display that either as a tooltip or as pop-up-on-hover Floating Menu Trigger?
The use-case seems straightforward: I have triggers that paste Clipboard-1, Clipboard-2, Clipboard-3, Clipboard-4, and while I remember 1 and 2 I am rarely sure what’s actually on 3 or 4, and I’d like to confirm it before pasting without having to display the Clipboard History window.
The Triggers, btw, let me quickly paste the last 3 or 4 items in the order they were clipped. Clicking the Trigger “Clip3” three times gives me “Clipboard 1”, “Clipboard 2”, “Clipboard 3”.
You could also use the get_items_from_clipboard_manager function to show a HUD.
For example this would save the preview content of clipboard item number 3 to the variable clip3 which can then be used in a HUD by putting it in curly braces:
async function retrieveThirdItem() {
let clips = JSON.parse(await get_items_from_clipboard_manager({start: 3, numberOfItems: 1}));;
let item = clips.items[0];
let previewText = item.meta?.previewText ?? "N/A";
await set_string_variable({variableName: "clip3", to: previewText});
return previewText;
}