Checklist
TagStudio Version
Alpha 9.5.7
Operating System & Version
Manjaro Linux [rolling]
Description
When using the search tags feature of the add tags modal, entering a shorthand does not guarantee that the tag with that shorthand will be displayed first (and therefore added when pressing enter)
Expected Behavior
In my specific case, I have tags "blue" and "black". Blue has the alias "u", and black has the alias "b". When entering "b", I expect the "black" tag to be at the top of the results. Instead, the blue tag is at the top of the results. I can use "k" to get black to the top of the results because it has the letter k earlier in its name than any other tag in my collection, but this is not how I want it to work as a user. I want to enter the shorthand I have provided and have that be sufficient to select the tag with that exact shorthand.
Additionally, I will say that the order of tags in the add tags modal is completely opaque to me. It is not alphabetical and it is not based on creation time, it is not based on color, it is not based on usage, and it is not based on parent. I believe it is based on length, because I'm guessing the order is calculated based on distance scoring which will always be worse for longer words when no search is provided. I think it might make sense for this order to be normalized somehow in the case of a blank search. The most useful would probably be based on usage.
Steps to Reproduce
- Create multiple tags that have some prefix in common, like blue and black.
- Create a shorthand for one of them, e.g. "b"
- Enter the shorthand in the search when adding tags, and observe that the tag with that shorthand is not guaranteed to be displayed first.
Logs
N/A
Checklist
TagStudio Version
Alpha 9.5.7
Operating System & Version
Manjaro Linux [rolling]
Description
When using the search tags feature of the add tags modal, entering a shorthand does not guarantee that the tag with that shorthand will be displayed first (and therefore added when pressing enter)
Expected Behavior
In my specific case, I have tags "blue" and "black". Blue has the alias "u", and black has the alias "b". When entering "b", I expect the "black" tag to be at the top of the results. Instead, the blue tag is at the top of the results. I can use "k" to get black to the top of the results because it has the letter
kearlier in its name than any other tag in my collection, but this is not how I want it to work as a user. I want to enter the shorthand I have provided and have that be sufficient to select the tag with that exact shorthand.Additionally, I will say that the order of tags in the add tags modal is completely opaque to me. It is not alphabetical and it is not based on creation time, it is not based on color, it is not based on usage, and it is not based on parent. I believe it is based on length, because I'm guessing the order is calculated based on distance scoring which will always be worse for longer words when no search is provided. I think it might make sense for this order to be normalized somehow in the case of a blank search. The most useful would probably be based on usage.
Steps to Reproduce
Logs
N/A