lumino icon indicating copy to clipboard operation
lumino copied to clipboard

Negate Selector

Open mlucool opened this issue 4 years ago • 3 comments

Hi,

I'd like to use not within a selector, but that does not seem to be working. The use case is having something apply for the whole selector except for specific children of it. Example:

       {
            "command": "runmenu:restart-and-run-all",
            "keys": [
                "Shift R"
            ],
            "selector": ".jp-Notebook.jp-mod-commandMode :not(.jp-Stdin)"
        }

Is this supported?

mlucool avatar Jul 06 '20 20:07 mlucool

The not selector is explicitly ignored here. I'm not sure what the ramifications would be of not removing that logic.

blink1073 avatar Jul 06 '20 22:07 blink1073

@blink1073 That seems to be only for calculating the specificity ?

vidartf avatar Jul 08 '20 12:07 vidartf

Perhaps, I don't have the bandwidth to look at this at the moment.

blink1073 avatar Jul 08 '20 15:07 blink1073