Todo-tree: Feature request: Is it possible to add option to sort the order of tags in the Tree view?

Created on 28 May 2020  路  12Comments  路  Source: Gruntfuggly/todo-tree

Currently, I have tags as { "TODO", "BUG", "FIXME", HACK", CHECK"}.

When I open the Todo Tree in the side bar, I always see CHECK first then BUG, CHECK, FIXME, HACK, TODO i.e., in alphabetic order.

Is it possible to sort based on my requirement?

bug fixed

All 12 comments

Which view are you using? Are you using "group by tag"?

I am using Show tag only view. But the order is alphabetic in all the other views (tree view, flat view) too.

EDIT: My tags are { "TODO", "BUG", "FIXME", "FIX", HACK", CHECK"} and "FIX", "FIXME" are grouped under "FIXME".

Can you send me a pic - for tags only view it should show them in the order they appear in the file?

Update: I am using Group by tag.
Yes for each tag they are sorted with the Line number but the Tags are sorted alphabetically.

TODO-tree

Do you have todo-tree.tree.sortTagsOnlyViewAlphabetically enabled?

No, It is off, but when I switch it to ON, I can see the items inside the tag are sorted alphabetically.

OK - I'll apply the setting to both.

What would be the order for the tags then?

based on the Tags order in the todo-tree.general.tags value?

Yes

Also, In the pic, you can see the number beside TODO is 30, but the no of items are less than 30 (I have a filter(Vishnu)).
I think the issue here is that the filter is applied on the items but not used when calculating the count.

Should I post this as a new issue?

Yes please

I've just uploaded v0.0.197 which I think should fix the sorting. Can you let me know if it does please?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rickstaa picture rickstaa  路  5Comments

onetrev picture onetrev  路  5Comments

fheinicke picture fheinicke  路  6Comments

josbalcaen picture josbalcaen  路  5Comments

Therzok picture Therzok  路  5Comments