https://onetwo.ren/wiki/#%24%3A%2Fplugins%2Flinonetwo%2Fcopy-on-select
@linonetwo
Is it possible to access the text copied to clipboard using this copy-on-select plug in as a variable for further usage ?
https://onetwo.ren/wiki/#%24%3A%2Fplugins%2Flinonetwo%2Fcopy-on-select
@linonetwo
Is it possible to access the text copied to clipboard using this copy-on-select plug in as a variable for further usage ?
No, variable is only accessable inside <$set
widget, but this copy script is one-time, and it doesn’t produce a <$set
widget in wikitext, so nowhere to set the variable.
but maybe it can set a state tiddler like $:/state/copied-text
so you can use it via transclusion. You can PR to add one if u want it.
what you meant by PR if you want it ? I don’t have any coding knowledge other than wikitext.
It would be useful to have the copied text in a state tiddler as you mentioned
Don’t limit yourself when we have LLM. You can use deepseek which is free GPT4 level coding AI. And that plugin is only using very simple JS.
I’m recently using github copilot to write C# and C++ on Unity and UE5 to write a game demo, which I didn’t even touch before.
LLM might not good at WikiText, but it is good at explaining JS for you.
Actually its already stored in the tiddler $:/state/notification/copy-on-select
Thats enough for my purpose I guess. Thanks for encouraging me to look into that javascript code