Open unhammer opened 1 year ago
So a combination of https://github.com/GrammarSoft/cg3ide and apertium-viewer. I may do that - beats having to add the same functionality into CG-3 IDE.
GitHub and Gitlab's web IDEs are both based on VS Code. The other big web IDE - https://theia-ide.org/ - supports VS Code extensions. Looks like it would be smartest to extend VS Code to do all we want.
Le sigh, https://code.visualstudio.com/api/extension-capabilities/overview#restrictions - VS Code extensions cannot do what I want.
https://theia-ide.org/docs/extensions/ may be the solution.
I use a script to recompile and re-run on save, looks like
Peek 12-12-2022 14-28.webm
but for Most People I think it'd be really nice to have something like that in regtest – regtest already kind of does this, you can change files and click re-run corpus and see the new output. But when working on transfer (in particular) I often like to zoom in on one sentence and see the full analysis tree as well as the generated output and final translation all in one go, every time I click save.
Regtest could have a 🔍 button on each input sentence, and on click you are shown a page for just that sentence, looking a bit like apertium-viewer, but preferably with a fairly big
<div>
for the-tree
output :)There could be a button to re-run tests for that sentence, but even more magical would be a "recompile-and-rerun-on-change" button (like
dev/r
does). If this is easiest to do withentr
rather than an external python lib for inotify, IMO it'd be fine if that one feature depended on havingentr
installed.