Remove unused code. Add normal double clicked logic.
Small cleanup. Fix bug with empty file and autocomplete. Normalize autocompletion from current file based on document text.