For a few days now, I'm trying to create a button which becomes disabled when:
Nothing is selected.
Files with the *.lnk extension are selected.
I've managed to partially make it work with @disablenosel:!type=*.lnk, so the button will be disabled if the *.lnk files are selected. The problem is that the button gets enabled when nothing is selected, and I want it to also be disabled when nothing is selected.
I've tried all kinds of combinations (including adding an extra @hidenosel as a hack, but it doesn't work in conjuction with @disablenosel -- is that by design?).
The krux of the problem is (as per docs) that the negation ! must be the first thing after the colon : (and it applies to the entire line), so something like @disablenosel:files,!type=*.lnk is not doable, neither is this syntax valid @disablenosel:!type=*.lnk,!files to flip the negation. Using multiple @disablenosel also doesn't work.
I primarily meant for the examples in the Command modifier reference, it didn't even occur to me to try the wildcard syntax for the @disablenosel because although the Standard wildcards are mentioned (and Pattern Matching Syntax is linked elsewhere for some other modifiers I wasn't interested in), the examples given for @disablenosel use their own syntax (! for negation) so I missed it.