i am pretty sure you already thought about it, but i could not find something related here (i hope i did not miss something). I thought it would be a nice addition to have some sort of customizable code snippets.
Where for example typing context! and hitting tab (or some other key) would expand into for example const canvas = DOM.context2d(width, height);.
Iāve said this before, but for me personally, it would be much more useful to have an API which allowed read/write access to a notebook, so people could use any text editor/IDE they want; adding fancier features to a web platform is never going to be able to match everyoneās existing expectations and preferences for how they should work. (But I definitely understand if this is not a priority. Itās not a trivial feature.)
Weāve discussed making autocompletion more discoverable in a previous thread. Itās potentially just home bias because Jeremy/Mike/I donāt use always-on autocompletion, and I personally find some of the completion behaviors to beā¦ wonky, like Atomās accept-completion-on-Enter, which conflicts with the ability to type a completable thing at the end of a line. But, yeah - as it stands, I fear that a lot of people donāt know that Tab works, and we need better onboarding to make that clear.
Per bring-your-own-editorā¦ itād be an awesome dream, but, yeah - itās a massive undertaking, especially because editors nowadays have pretty deep language integration and weād have to either create a ājust JavaScriptā dialect of Observable to play nice, or write an Observable mode for n editors. Plus, of course, the whole syncing/file-access/etc idea.
weād have to either create a ājust JavaScriptā dialect of Observable to play nice, or write an Observable mode for n editors. Plus, of course, the whole syncing/file-access/etc idea.
No you wouldnāt. The community (either of Observable or of those editors) is more than capable of filling that in.
For instance, I would be happy to do the work to make a TextMate language bundle.