texstudio icon indicating copy to clipboard operation
texstudio copied to clipboard

Labels in Structure need be sorted

Open yzhang738 opened this issue 3 years ago • 1 comments

Environment

  • TeXstudio: 4.2.2
  • Qt: 5.15.2
  • OS: Windows 10
  • TeX distribution: texlive

Expected behavior

Labels in Structure panel should be sorted alphabetically so that it is clear which of them are available or not.

Actual behavior

Currently, labels in Structure panel are not sorted alphabetically as shown in the image below: TexStudio Problem1

How to reproduce

Open a tex file and click on Structure->Labels on the left. This will show the problem.

yzhang738 avatar Mar 30 '22 17:03 yzhang738

I believe that curently the sort order is given by order of the \label statements in the text. What I used to do is when starting to create a new label this can be seen immediately in the labels subtree on the left (when you use autocompletion for \label). So I can see which labels I used nearby in the text. From this I would like to suggest to have quick access to select the current sort order I need. BTW: It's very nice that we can see for \label how often the label is used including a list of the text passages and for \ref where the label is defined (including a quick preview ot the text).

octaeder avatar Mar 31 '22 08:03 octaeder