I want to set key bindings which only work within commented lines, but can’t find the way.
For example, now I’m working with R and when I run ‘Log Cursor Scope’ command on a commented line I get below as the scopes at the cursor.
I know that I can set key bindings for ordinal code lines with below.
"atom-text-editor[data-grammar='source r']": ...
Therefore I tried the config below, but it does not works.
"atom-text-editor[data-grammar='comment line number-sign r']": ...
Can I set keybindings which only works for the scope