You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the longer term, I would expect a clipboard that supports data types beyond text, or a non-global pasteboard, will be important for apps like Runebender. But maybe that's running before we can walk.
The text was updated successfully, but these errors were encountered:
I'm going to hijack this issue to track copy/paste more generally; we're going to need to copy and paste paths for runebender, and if we're doing that within the app we should take the time to get it working with the rest of the system. For paths this means converting them to postscript.
Not sure about what the API for this will look like, but at the very least we should try to support text, rich text, images (at least png+jpg), and paths.
cmyr
changed the title
Add basic copy / paste for text
Add copy / paste
Aug 9, 2019
I don't have strong feelings whether support is in druid-shell proper or not. It seems like there's benefit to having it hook the event loop. But yes, a valuable feature, and also valuable to support types beyond plain text (including vector graphics), as they're directly useful for Runebender.
As we've discussed on Zulip, it's unclear whether EPS or PDF are a better type for vector paths. The former is deprecated on macOS but possibly more widely implemented in other tools that we care about interop with.
I think this will require druid-shell support, because the exact mechanics of the pasteboard (such as how the type of data is communicated) will be dependent on the platform.
As we work toward the "longer term future" as described in #16, a pasteboard (the Mac word) / clipboard (the Windows word) would very nice to have!
One possibility is to rely on the Clipboard crate. In fact, it seems like it's not totally necessary for this functionality to be inside druid-shell or even druid? To my understanding, the winit project declared clipboard functionality out of scope for this reason.
In the longer term, I would expect a clipboard that supports data types beyond text, or a non-global pasteboard, will be important for apps like Runebender. But maybe that's running before we can walk.
The text was updated successfully, but these errors were encountered: