Context-dependent menu


#1

I have installed different programming language plugins in Atom. Is it possible to have only context-dependent menu entries for e.g. a Python file?

If I have a Python file open, why I get all those menu entries from other plugins that not working for Python files?


#2

Yes. There’s a description of how to assign context menus to specific CSS selectors in the Flight Manual.

If I have a Python file open, why I get all those menu entries from other plugins that not working for Python files?

Because the creators of those packages did not choose to limit their context menu entries to a specific kind of file. Atom gives a whole lot of freedom to individual packages, with the idea that users will fork or tweak whatever they don’t like.