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

fix: Fix username tab completion without @ #4853

Merged

Conversation

dnsge
Copy link
Contributor

@dnsge dnsge commented Sep 30, 2023

Description

Fixes usernames not being tab-completed without the @ prefix (and the "Only search for username autocompletion with an @" setting disabled).

The completion items being returned by the user source always started with an @. The candidate for completion of the query icel would be @icelys, which is incompatible due to the extra "@".

Fixes #4850

Copy link
Collaborator

@Felanbird Felanbird left a comment

Choose a reason for hiding this comment

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

tested literally everything I could think of so we can get this done really for real this time

test works? correct?
username tab completion with the @ setting disabled yes ✔️
username tab completion with the @ setting enabled no ✔️
@username tab completion with the @ setting disabled yes ✔️
@username tab completion with the @ setting enabled yes ✔️
colon emote menu tab completion yes ✔️
emote tab completion with the onlyStartOfName setting enabled yes ✔️
emote tab completion with the onlyStartOfName setting disabled #4855 ✔️ 1
emote tab completion when emotes are disabled yes ✔️
command tab completion when the command starts with / yes ✔️
command tab completion when the command doesn't start with / yes ✔️
command tab completion when the command starts with an /, but the / was not included yes 2

Footnotes

  1. once the issue noted is worked-around, tab completion works as expected

  2. see https://github.com/Chatterino/chatterino2/pull/4855#issuecomment-1741960689

@pajlada pajlada enabled auto-merge (squash) October 1, 2023 09:28
@pajlada pajlada merged commit 4bb196c into Chatterino:master Oct 1, 2023
15 checks passed
@dnsge dnsge deleted the fix/username-tab-completion-without-at branch October 1, 2023 16:19
Felanbird added a commit to Felanbird/chatterino2 that referenced this pull request Oct 9, 2023
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.

Unable to tabcomplete user names without an @
3 participants