TangibleInc / template-system

A template system for WordPress with content type loops and conditions
https://docs.loopsandlogic.com/reference/template-system/
6 stars 2 forks source link

Editor: Improve autocomplete suggestions #54

Open eliot-akira opened 8 months ago

eliot-akira commented 8 months ago

If I type ‘width:’ and then ‘f’ it will suggest ‘fantasy’. I would expect it to suggest ‘fit-content’. Maybe it’s suggesting in alphabetical order rather than being context aware?

This is about the default autocomplete definitions that comes with CodeMirror's language extensions. I've already forked the HTML extension for customization, but it sounds like we need to fork the Sass extension as well.

It's true that the suggestions are currently shown simply in alphabetical order. Making it context aware is not so simple, there would need to be some "smart" logic built into the autocomplete function.