Emit 'match' and 'tabComplete' events. Close #6