Closed TalVivian closed 3 years ago
Is this supposed to make tabbing users case sensitive (e.g. can't tab Peter when searching with "pe") or just when you actual tab the name, and the text gets inserted into the text editor?
When you tab the name it shows display name (case sensitive) instead of login name (lower case). The second one.
I believe the right way is to treat the input as case insensitive (so it shouldn't matter if I type talv
, TalV
or TALV
) and output as case sensitive (so it always becomes TalVivian
).
So are there plans to fix this? It's the one reason I switched to Chatty. I'd prefer using Chatterino because I love it, but the names being all lowercase is a deal breaker for me. I hope this gets addressed soon, would love to switch back.
So are there plans to fix this?
Well, there are no open pull requests at least. I suppose this isn't as big of a nuisance for most people so it's probably rather low on the list of priorities.
Currently users get added to the list as their messages show up in here: https://github.com/Chatterino/chatterino2/blob/3679125e2f959dbd7cb981bc25ab56b6a82e188a/src/common/Channel.cpp#L73-L78
and once in a while we fetch a full list from api: https://github.com/Chatterino/chatterino2/blob/aac27c2a0d8fca560e4daa184075bb871e41f968/src/providers/twitch/TwitchChannel.cpp#L677-L699
The problem is that while we can fix the first one by just swapping to display name, the second requires an extra call to api to aquire the display name. I wrote a POC in python to show how it can be extracted.
I bet it can be nicely cached too. There is one caveat and it's the fact that some display names might be in CJK. Right now chatterino doesn't support tab completion with them, while twitch client is happy to accept for example japanese input and tab complete it.
Sadly I lack skills to do it properly in C++/Qt5 so I'll leave it as an exercise to the reader :alarm_clock:
PS: For now I swapped to
message->displayName
and commented out the request and it kinda works.