Feat: autocomplete
Added autocomplete to the web editor. Uses the default CodeMirror JavaScript autocomplete with some custom completions for Sprig-specific functions. It also includes tooltips that show the documentation for that function imported from the docs.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| sprig | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 12, 2024 9:55pm |
Currently reads the docs, puts it inside an HTMLElements innerHTML, and then reads the innerHTML again. This is because the regex seemed to have problems with the Unicode characters the "compiled content" would give. Feel free to change it since there must be a more efficient way to do this, I just haven't figured it out yet.
Closing this due to inactivity.