sprig icon indicating copy to clipboard operation
sprig copied to clipboard

Feat: autocomplete

Open youknowedo opened this issue 1 year ago • 2 comments

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.

youknowedo avatar Aug 12 '24 21:08 youknowedo

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

vercel[bot] avatar Aug 12 '24 21:08 vercel[bot]

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.

youknowedo avatar Aug 12 '24 22:08 youknowedo

Closing this due to inactivity.

grymmy avatar Feb 18 '25 15:02 grymmy