Improve external command input

Provide a more shell-like experience:

- complete partial parts entered,
- do an internal cd only once the navigation is done
- only complete directories for `cd`
- popup completion automatically only when deemed neccessary
Avoid an extra empty line for a finished process buffer