Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
leanid opened this issue Jan 27, 2024 · 2 comments
Open

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

leanid opened this issue Jan 27, 2024 · 2 comments

Comments

@leanid
Copy link
Contributor

leanid commented Jan 27, 2024

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.

@Alexander-Miller
Copy link
Owner

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?

Copy link

stale bot commented Mar 31, 2024

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).

@stale stale bot added the stale label Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants