Open EmileRolley opened 3 weeks ago
I think the full name is a good choice. But I would rather prioritize for the shorter namespace, and not proposing the childrens. The idea is to achieve a flow of multiple autocompletion by narrowing the context. I find myself trying to do that with the extension, but it's not supported for now.
Here is an example :
Presently, the behavior in bold are not implemented, but I think it would benefit greatly to the DX.
The second improvement would be to prioritize child rules of the current namespace, and then the parents' one. And not autocomplete from the root when a rule is found, instead just having the relative path from the common ancestor.
The idea is to achieve a flow of multiple autocompletion by narrowing the context.
It would be great for sure! However, I'm not sure that's possible as spaces are allowed in rule names :thinking:
It would be great for sure! However, I'm not sure that's possible as spaces are allowed in rule names 🤔
Mmmh, good point. It could be done so that when the selected autocompleted rule has children (is a namespace), the inserted string automatically adds a trailing .
at the end.
Or maybe I'm missing a technical limitation of some other kind?
As the rule names are often really long, it's difficult to choose the right item from the completion menu:
We need to find a way to make it more readable. Here a few ideas (don't hesitate to suggest others @johangirod @Clemog):
logement . électricité . photovoltaique . présent
becomeslog . éle . pho . présent
)