Added thread for polling `rc -m` output.

Didn't integrated yet. Still need to check if we really need to
reindex unsaved file.