Add OutputCommand for copying text and opening URL:s - #5532
Conversation
* Part of #5424 * Adds `egui::OutputComm * Part of https://github.com/emilk/egui/issues/5424and` * Adds `PlatformOutput::commands` * Deprecates `PlatformOutput::open_url` * Deprecates `PlatformOutput::copied_text`
|
Preview available at https://egui-pr-preview.github.io/pr/5532-emilkoutput-cmd |
|
@emilk this makes the usage in Rerun a bit tricky here: We intercept all clicked urls and check whether they should redirect to an entity. Not sure how we can preserve this functionality. Seems like this would require installing a sort of user provided command handler :/ (There's also a different spot where we enforce all links to be opened in tabs, but that seems less important) |
|
@Wumpf instead of inpspecting/mutating |
Add
OutputCommandfor copying text and opening URL:segui::OutputCommand?PlatformOutput::commandsPlatformOutput::open_urlPlatformOutput::copied_text