Add automatic pause/resume of autosuggestions

based on cursor position
Fixed 'tab' key in autosuggestion