Alexander-Miller/treemacs

No way to disable sorting for method/functions names in file node

leanid opened this issue · 2 comments

leanid commented

I tested it on my home c++ project. I type TAB and see functions/namespaces/classes inside some c++ file - nice! But it show me all this in alphabetical order, I want to see it in order it goes in file. I think it is more natural to remember and searching.

This is example how it is for now
image

As you may see on this image, contents of class is sorted by name and by type (first by type, then by name) is any way to disable this sorting and list functions/structs/namespaces in file order. Thanks in advance.

Treemacs is responsible only for the graphical part, the tags themselves are derived from imenu. So the order would depend on your imenu backend.

Based on a quick test default imenu does show items in the order they appear, but it doesn't even show methods in classes, so you must be using something else, maybe some doom feature, or maybe you have a language server?

This issue has been automatically marked as stale because it has not had recent activity (this bot only works as a reminder, it will not close issues).