Support custom sort order in outline panel (by type, alphabetical, position) #58782
tea4go
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
The outline panel currently sorts entries only by their position in the source file. There is no setting to sort by symbol type or alphabetically.
Current Behavior
Outline entries are displayed in the order they appear in the source file. The
outline_panelsettings section has no sort-related options:{ "outline_panel": { "dock": "left", "expand_outlines_with_depth": 0 } }There is no way to group or sort symbols by kind (functions, types, constants, etc.) or alphabetically.
Proposed Behavior
Add a
sort_byoption tooutline_panelsettings with the following values:"position"(default) — Current behavior: sort by location in file"type"— Group by symbol kind (functions, structs, interfaces, constants, etc.), then alphabetically within each group"alphabetical"— Sort all entries alphabetically, regardless of type or positionExample:
{ "outline_panel": { "sort_by": "type" } }When
sort_byis"type", the outline could render with group headers like:Why This Matters
Environment
Beta Was this translation helpful? Give feedback.
All reactions