We received a feature request for a project where Codemirror is one of the main feature.
The customer want to be able to trigger a “show docs” feature. The behavior is someway similar to the autocomplete/hinter feature (we are already using) but the popup will only display data (no selection of items).
I’m wondering how is simple to add new feature like this to Codemirror and if looking at the hinter add-on can help.
If this is doable, can you point me to a guide or give me general direction on how to implement new plugins? Maybe just looking at hinter is enough?
The current JSON-LD Playground has a “tooltip” thing–which sounds like what you describe–but it’s pretty specific to that site/use-case. Building something more generic is on my list. Maybe we can collaborate!
In my case I need to trigger both the tooltip/overlay-thing and an autocomplete list. The autocomplete bit is done (in my case).
It doesn’t sound “hard” per se. I think it’s mostly about abstracting the pieces enough to make this reusable for more CodeMirror projects (i.e. package it as a plugin).