Fix title autocompletion

Previously the autocompletion wasn't working at all and the
completion itself would only have put the title of a match
into the search field.

This change (besides fixing the completion itself) redirects
the user directly to the selected snippet.