One of the features I am wanting to add to the AI plug is auto-completion in various spots. E.g. in a space-script
code fence.
For example, in vscode, I can get something like this:
Instead of popping up an auto-complete suggestion box, it puts a single “hint” in a different color and lets you tab to select it. There may be shortcut keys to cycle between different suggestions too.
In SB right now, I have a prototype using the current auto complete that looks like this:
and after accepting the suggestion:
This example is in a code block, but it looks the same in a normal note too. One of the issues is that it doesn’t show the full multi-line suggestion, so you won’t know what you get until you accept it.
So all that to say, I found this codemirror plugin: GitHub - saminzadeh/codemirror-extension-inline-suggestion: A CodeMirror extension to display inline suggestions
It looks like it would do the trick. Would there be any objections to adding it (or something else if there is something better), and then maybe setting up a new event like editor:inline-complete
separate from the existing editor:complete
event.