atom-latextools
atom-latextools copied to clipboard
Suggestion: Scan through current texfile(s) for defined commands.
quite often macros are set, either through \def, \newcommand, \newdocumentcommand \newenvironment with robust variations and such. Could the editor scan through the current file, or project for any of these definitions and add them to a temporary autocomplete-list? Bonus if it also would be able to create any mandotory fields,
for instance:
\newcommand{\theader}[2]{#1 - #2} would autocomplete from the... to \theader{field}{field}
For comparison in the Sublime Text version https://github.com/SublimeText/LaTeXTools/pull/711:
It would be more complicated, because the Atom version hasn't something like the analysis yet https://github.com/SublimeText/LaTeXTools/pull/611, which would simplify the project scanning.