zed icon indicating copy to clipboard operation
zed copied to clipboard

add a web view into Zed for website previews

Open isaacmclellan opened this issue 1 year ago • 5 comments

Check for existing issues

  • [X] Completed

Describe the feature

It would be nice if there was a web view extension/built in feature for previewing websites inside of Zed without having to go into a web browser while building web apps in Zed. This could be implemented by using Tauri's Wry crate which talks to the native webview on the OS of which it's running. This would also help other GPUI apps cause they could embed webviews

If applicable, add mockups / screenshots to help present your vision of the feature

No response

isaacmclellan avatar Apr 14 '24 22:04 isaacmclellan

If there have a WebKit component in Zed, then some case like Markdown, AsciiDoc, HTML, CSV Preview, Testing Results ..., that will easy to write and control the styling in HTML, it would easier to do than write in Rust.

huacnlee avatar Apr 15 '24 09:04 huacnlee

If there was a webview component that would encourage people to write all functionality in HTML+JS, at which point you should unironically use vscode for better performance as that is a webview without all the resource use that Zed incurs from its custom UI.

jansol avatar Apr 15 '24 13:04 jansol

Related:

  • #5310

Moshyfawn avatar Apr 15 '24 15:04 Moshyfawn

How about wry?

https://github.com/tauri-apps/wry

huacnlee avatar Apr 24 '24 02:04 huacnlee

How about wry?

https://github.com/tauri-apps/wry

That's what I said the webview would be provided by

isaacmclellan avatar Apr 27 '24 20:04 isaacmclellan

If there was a webview component that would encourage people to write all functionality in HTML+JS, at which point you should unironically use vscode for better performance as that is a webview without all the resource use that Zed incurs from its custom UI.

@jansol Agree this would be the case if extensions were allowed to be written in HTML+JS but this could very well be a built-in feature similar to how JetBrains IDEs render markdown built-in.

muvaf avatar Sep 01 '24 14:09 muvaf