oddities with up-line-or-beginning-search completion, this will likely
need more work