Replies: 6 comments 4 replies
-
I am not familiar with the zed editor, but you should look for "code actions" or "code lenses" when having the cursor on the name of a component in a .slint file. (I'm assuming you have the extension ) If you figure it out, please leave a comment on how to do it. |
Beta Was this translation helpful? Give feedback.
-
@0xkelvin I had a look at the code for the Zed extension, it looks like it's mostly just highlighting for now: https://gitlab.com/flukejones/zed-slint I am assuming that you are using the slint extension from the Zed extension store! |
Beta Was this translation helpful? Give feedback.
-
it seems that zed-editor doesn't give plugins as many features as vscode does |
Beta Was this translation helpful? Give feedback.
-
The zed devs I spoke with at rustlab said that Zed does not yet support custom commands. Showing the preview is a custom command, so I think that explains why this does not work. |
Beta Was this translation helpful? Give feedback.
-
If anyone is willing and able to implement the preview feature for Slint files, go ahead and make a pull request to the zed-slint project. An issue proposing this feature has already been filed there a couple of weeks ago, but the repository owner hasn't responded yet. |
Beta Was this translation helpful? Give feedback.
-
It's been a minute, but I just tested the live preview in Zed. You can right click on the name of a component, ie "MainWindow" in this example: export component MainWindow inherits Window { You'll see the "code actions" option, which will bring up the preview option. This option will bring up the preview window. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Do we have show preview feature on Zed editor ?
Beta Was this translation helpful? Give feedback.
All reactions