What is the purpose of atom-text-editor:not([mini]) in keymap.cson?


#1

Inside keymap.cson, what is the difference between these two selectors?

'atom-text-editor'
'atom-text-editor:not([mini])'

#2

The :not([mini]) part tells Atom not to use the keybinding on atom-text-editor elements with a mini attribute. Mini text editors are the one-line text inputs found in the settings view (and other places). So you use atom-text-editor:not([mini]) when you want a keybinding to apply only to code text editors.