I’d like to make keybindings specific to scopes I’ve specified in my grammar file, for example:
'.border.table.organized': 'enter': 'organized:newTableRow'
'.meta.starline.organized': 'enter': 'organized:newStarLine'
But so far I can’t seem to get that to work. The canonical ‘atom-text-editor[data-grammar=“source organized”]’ selector works, but only allows me to bind a keystroke to my entire package.
I’ve tried a wide variety of selectors, such as:
- ‘atom-text-editor[data-grammar=“source organized”] span.border.table.organized’
In all cases, the keybinding resolver shows my keybinding grayed out with an X next to it, despite the fact that the editor:log-cursor-scope command will show "border.table.organized’ as being an active scope.
Any thoughts? Perhaps the keymappings just don’t support scopes at this point?