atom/command-palette

Grammar Sensitive Commands

ZehCnaS34 opened this issue · 1 comments

Is there a way to only display certain commands only when a certain grammar is active? I think it's kind of weird seeing babel specific commands in the command palette while I'm editing python. I know PR #92 kind of helps me fix this issue, but I'm not sure how much.

@ZehCnaS34 the package author just needs to scope their commands correctly, for example by using atom-text-editor[data-grammar="source js"] (or whatever scope Babel uses).