Filter candidates on typing

Fixes #13.