atom-latextools icon indicating copy to clipboard operation
atom-latextools copied to clipboard

Suggestion: Scan through current texfile(s) for defined commands.

Open runar-rkmedia opened this issue 8 years ago • 1 comments

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}

runar-rkmedia avatar Aug 15 '16 20:08 runar-rkmedia

For comparison in the Sublime Text version https://github.com/SublimeText/LaTeXTools/pull/711: Self-defined command completion 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.

r-stein avatar Aug 15 '16 21:08 r-stein