alexeyr / company-auctex

company-mode autocompletion for auctex
49 stars 18 forks source link

Use all the codes in the existed equations as the backend for autocompletion when type new equation #22

Open Edenharder opened 7 years ago

Edenharder commented 7 years ago

I find that I often have to suffer typing some similar latex codes many times in different equations or the same equation. So it will be convenient that all the codes in the existed equations in the buffer could be used as the backend for autocompletion.

It seems to me that it should be the same technique used in the autocompletion for the plain text. That is,

  1. collect all the codes/words separated by space in the equation environment in the buffer as the backend
  2. list the candidates with the same beginning

As I tested, company-auctex didn't list the codes in the existed equations. It will be great if company-auctex could have this feature.

A related issue for company.