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

Added autocompletion in /whispers for Twitch emotes, Global Bttv/Ffz emotes and emojis #2999

Merged
merged 10 commits into from
Jul 17, 2021

Conversation

zneix
Copy link
Collaborator

@zneix zneix commented Jul 13, 2021

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Description

Slight refactor in CompletionModel allows us to differentiate between regular Twitch channel and other Twitch channels, as defined by Channel::Type.

Added completion for

  • TwitchAccount's emotes (global and subscriber)
  • Bttv/Ffz global emotes
  • Emojis

In the means of refactor addString lambda has been promoted to a private method CompletionModel::addString.
CompletionModel::TaggedString seems to be a veeeeery old artifact that's gone since quite some time, so I also removed it.

Closes #900

zneix added 5 commits July 13, 2021 06:43
Slight refactor in CompletionModel allows us to differentiate between
regular Twitch channel and other Twitch channels, as defined by `Channel::Type`.

Added completion for
- TwitchAccount's emotes (global and subscriber)
- Bttv/Ffz global emotes
- Emojis

In the means of refactor `addString` lambda has been promoted to a private method `CompletionModel::addString`
It's not worth having to pass prefix every time when we want to call addString
@zneix zneix requested a review from pajlada July 13, 2021 12:01
Copy link
Member

@pajlada pajlada left a comment

Choose a reason for hiding this comment

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

👍

@pajlada pajlada changed the title Autocomplete emotes in whispers Added autocompletion in /whispers for Twitch emotes, Global Bttv/Ffz emotes and emojis Jul 17, 2021
@zneix zneix enabled auto-merge (squash) July 17, 2021 11:27
@zneix zneix merged commit 74c5cca into master Jul 17, 2021
@zneix zneix deleted the zneix/feature/autocomplete-emotes-in-whispers branch July 17, 2021 12:35
zneix added a commit to SevenTV/chatterino7 that referenced this pull request Jul 17, 2021
Now we're on commit 9f2fc90; Changes from upstream we pulled:

- Major: Newly uploaded Twitch emotes are once again present in emote picker and can be autocompleted with Tab as well. (Chatterino#2992)
- Minor: Added autocompletion in /whispers for Twitch emotes, Global Bttv/Ffz emotes and emojis. (Chatterino#2999, Chatterino#3033)
- Minor: Received Twitch messages now use the exact same timestamp (obtained from Twitch's server) for every Chatterino user instead of assuming message timestamp on client's side. (Chatterino#3021)
- Minor: Received IRC messages use `time` message tag for timestamp if it's available. (Chatterino#3021)
- Bugfix: Fixed "smiley" emotes being unable to be "Tabbed" with autocompletion, introduced in v2.3.3. (Chatterino#3010)
- Dev: Ubuntu packages are now available (Chatterino#2936)
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.

Autocomplete global and subscribers emotes in /whispers tab.
2 participants