texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.85k stars 346 forks source link

`package` cwl keyword should only show completion for .sty files #3821

Closed mbertucci47 closed 1 month ago

mbertucci47 commented 2 months ago

Describe the feature and the current behavior/state

The package cwl keyword that autocompletes package files, such as in \usepackage{package}, should only list installed .sty files. Right now it lists both .sty and .cls files. The latter should be shown in commands with the class keywords (related #3817). For example there is memoir.cls but no memoir.sty so "memoir" showing in the completer for \usepackage is not useful.

sty-comp

Who will benefit with this feature?

All users. This would remove unnecessary entries from the \usepackage list.

sunderme commented 1 month ago

done