Move logics in edit.completion widget to edit.startCompletion
Implement rprompt
Handing ^D better