Relm4 Snippets
Relm4 code snippets
How to install
With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.
You can also open the Extensions panel in the app and search for Relm4 Snippets. The extension's id is relm4-snippets.
Don't have Forge Super yet? Download it here.
README
From the extension's repository, written by its authors and not by Mentenaz. See the source.
Relm4 Snippets for Zed
This extension for Zed adds code snippets for Relm4.
It's the Zed counterpart to vscode-relm4-snippets.
Usage
| Syntax | Description |
|---|---|
relm-component | Create a new Component widget |
relm-async-component | Create a new AsyncComponent widget |
relm-simple-component | Create a new SimpleComponent widget |
relm-simple-async-component | Create a new SimpleAsyncComponent widget |
relm-factory | Create a new Factory widget |
relm-async-factory | Create a new AsyncFactory widget |
relm-template | Create a new WidgetTemplate widget |
relm-worker | Create a new Worker structure |
Developing locally
This extension is pure snippets, so no Rust/WASM build step is required.
- Open Zed's extensions page (
zed: extensions). - Click Install Dev Extension and select this repository's directory.
Publishing
Once ready, this extension is submitted to the Zed Extension Registry as documented in their Publishing Guide, by adding it as a submodule and an entry in that repo's extensions.toml.