News for hackers. Stuff that matters.
Re:Ask HN: Are you familiar with the idea of transclusion? by bryanrasmussen on Tuesday July 05, 2022 @02:28AM (#31985015)
I suppose for it to work the different apps still have to allow drag and drop?

So your monetization would be superusers paying for this app to allow them to do this kind of thing, can you already do it via copy and paste operations?

Re:Ask HN: Are you familiar with the idea of transclusion? by zhangruinan on Tuesday July 05, 2022 @03:17AM (#31985311)
copy and paste only preserve the content, but not the context. u cannot go back to the original content u copied from.
Re:Ask HN: Are you familiar with the idea of transclusion? by capableweb on Tuesday July 05, 2022 @10:04AM (#31988310)
That might be true in a browser context, but I think both Windows and Linux (not sure about macOS) has the concept of a "clipboard" owner or "controller", which is usually the last application that copied data to the clipboard (although Linux also have the concept of "primary" and "secondary" "clipboard"), so when someone pastes into a application you're writing yourself, you could see where the data is coming from. Of course, you wouldn't be able to see what data the data that was made into the clipboard was derived from, but you get a bit of context at least.

Edit: Actually, my memory about how it works on Linux is a bit foggy, only part I'm relatively sure about is that Windows has the concept of clipboard "owner".

Re:Ask HN: Are you familiar with the idea of transclusion? by zhangruinan on Tuesday July 05, 2022 @11:02PM (#31996229)
I have once used an app (forget name), which can track down clipboard updates. I uninstall the app mainly because I cannot go back to the "context", only knowing which app the data is from is not enough. For example, I copy a sentence from a chrome to word. There is no url for me to reopen the website.
Re:Ask HN: Are you familiar with the idea of transclusion? by bryanrasmussen on Tuesday July 05, 2022 @04:14AM (#31985678)
Thanks!