Refactor out regexes into own category.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Change how we tell the search bar about tokens.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Fix tokens not being inserted in some cases.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Fix wrong token being inserted when tapping insert user button.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Fix token completions view having a weird inset.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>
Add logic for telling the search field about tokens.

Signed-off-by: Aron Cedercrantz <aron@cedercrantz.se>