msiniscalchi / atom-latextools

Port of the LaTeXTools package to the Atom editor
MIT License
58 stars 20 forks source link

how to trigger auto completion in math mode? #105

Open randy3k opened 8 years ago

randy3k commented 8 years ago

I have no idea how to do it....it seems that none of the snippets work in the math mode.

ig0774 commented 8 years ago

Depends on what you mean by don't work... Snippets do work in the sense that entering a prefix + tab seems to fill in a snippet, but the autocomplete menu doesn't appear. This is discussed here. The underlying issue appears to be related to the scope being set to "string.other.math..." by language-latex. Basically, another set of problems caused by the legacy of TextMate's LaTeX syntax.

yudai-nkt commented 7 years ago

Hi @randy3k and @ig0774, I am a collaborator of language-latex package and just happened to find this issue. As is already mentioned in this thread, snippet expansion does work while snippet autocompletion doesn't in math mode. This problem should be fixed by area/language-latex#137 and some details are explained in the PR.

The PR is a part of the next major update, so it will take a while to be released. That being said, you can test the topic branch already and I would appreciate it you could give us some feedback!