-
Notifications
You must be signed in to change notification settings - Fork 0
Description
TL;DR it would be nice to have all of this rationalised, cleaned and documented.
The differences between these two mechanisms are a little bit odd, and feel anachronistic.
You can't apply autoconf files to keyboard controllers, which doesn't make a great deal of sense, as the auto-linking mechanism is potentially useful.
Similarly, you can't (as far as I know) get auto-linking with the JSON format although in theory I can see no reason why it couldn't be added.
The
"type": {
"methods": [],
"events": []
}
section of the JSON is either an un-used legacy of an earlier age, or perhaps an undocumented feature that could still be useful?
The slot naming and element linking support in JSON is not very useful, based as it is on slot position rather than element class.
Meanwhile there are some potentially useful features of either/both mechanisms that are missing:
- being able to suppress the generation of the
_autoconftable but keep the linking - being able to specify event handlers to apply to all elements of a given class where
select: allis set, rather than having to enumerate them as_1,_2, etc (maybe this is possible? I haven't figured out the syntax yet if so)
Overall, it's a bit of a mess, which would be nice to have cleaned up.