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

Deduplicate emotes by name in smart tab emote completion strategy #5705

Merged
merged 4 commits into from
Nov 12, 2024

Conversation

ilya-zlobintsev
Copy link
Contributor

This PR makes it so if there are multiple emotes with the same name (for example from different sources) and you are using the "smarter emote completion" option, when tabbing through them it no longer cycles through all the instances of the same name.

Originally I changed this in SmartEmoteStrategy, but this ended up removing duplicates from the : dropdown menu as well, which is not something we want I believe. Now it's deduplicated specifically in TabCompletionModel regardless of the emote strategy, but I think this should be fine as it's a cheap operation.

@pajlada pajlada requested a review from Mm2PL November 9, 2024 12:34
Copy link
Collaborator

@Mm2PL Mm2PL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@Mm2PL Mm2PL enabled auto-merge (squash) November 12, 2024 14:06
@Mm2PL Mm2PL merged commit 63f363e into Chatterino:master Nov 12, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants