Create your spellbook!

The spellbook (your sublime-settings file) consists of a single spells array containing the user-defined spells:

{"spells":[]}

The spells are iterated one-by-one and the first one matching the context conditions is casted. When there's no spell matching, nothing happens. When there are multiple matching spells, only the top-most one is performed.