Hannah-Sten / TeXiFy-IDEA

LaTeX support for the IntelliJ platform by JetBrains.
https://hannah-sten.github.io/TeXiFy-IDEA
MIT License
882 stars 87 forks source link

Glossaries autocompletion #2385

Closed fberlakovich closed 2 years ago

fberlakovich commented 2 years ago

It would be nice to have auto completion (like e.g., for bibtex references) for acronyms and glossary entries. As the glossaries package is large and provides many different ways to define acronyms and glossary entries, we could start with the presumably most commonly used commands. Example:

\documentclass[11pt]{article}
\usepackage{glossaries}
\newacronym{cpu}{CPU}{Central Processing Unit}

\begin{document}
  My computer has a \gls{c % display suggestions here
\end{document}
fberlakovich commented 2 years ago

I have started implementing a prototype, but have to see which supported commands are feasible for the beginning.

PHPirates commented 2 years ago

Good idea, sounds doable. Yes, I'd first focus on the commands that you'd use yourself. If there are more people using different commands, it's likely they will submit an issue here anyway. Plus, I'm not going to read through the 357 page user manual to see if you missed any...

Awesome! Let me know if you need any help.