You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The glossaries package has been somewhat overhauled with the advent of the glossaries-extra package. The biggest problem, for me, was missing autocompletions for entries created using the new glossaries-extra syntax.
Below, I suggest some modifications to enhance the autocompletion feature of LatexTools in ST.
Minor problems arise with the extraction of the entry labels for some special cases (glossary entries with a footnote and citation) , such that there are some faux labels in my completion drop-down list in ST. Sadly, I could not locate the code where the labels are extracted so I don't know why this happens.
Nevertheless, this enhancement has been of great benefit to myself as I juggle many glossaries.
Maybe it would also be helpful if the user could integrate his own keys. I've added an operation (op) and unit (unit) field into my glossaries and therefore simply modified the regex to include these field names (keys):
Problem description
The glossaries package has been somewhat overhauled with the advent of the glossaries-extra package. The biggest problem, for me, was missing autocompletions for entries created using the new glossaries-extra syntax.
Below, I suggest some modifications to enhance the autocompletion feature of LatexTools in ST.
Preferred solution
I personally have added
to line 25 of latex_glossary_completions.py
LaTeXTools/latex_glossary_completions.py
Lines 24 to 25 in b27fc39
which does the trick (almost) perfectly:
also I modified the regular expression GLO_LINE_RE in line 9 of latex_glossary_completions.py
LaTeXTools/latex_glossary_completions.py
Lines 8 to 10 in b27fc39
to include triggering for the standard "glsentry" commands (very important for headings, captions etc.) as well as multiglossary commands:
Minor problems arise with the extraction of the entry labels for some special cases (glossary entries with a footnote and citation) , such that there are some faux labels in my completion drop-down list in ST. Sadly, I could not locate the code where the labels are extracted so I don't know why this happens.
Nevertheless, this enhancement has been of great benefit to myself as I juggle many glossaries.
Maybe it would also be helpful if the user could integrate his own keys. I've added an operation (op) and unit (unit) field into my glossaries and therefore simply modified the regex to include these field names (keys):
Alternatives
None.
Additional Information
Thanks in advance and of course for this great tool!
The text was updated successfully, but these errors were encountered: