Chatterino / chatterino2

Chat client for https://twitch.tv
MIT License
1.97k stars 442 forks source link

Exclude emotes from tab completion when using chat commands #5398

Open littlegamer87 opened 1 month ago

littlegamer87 commented 1 month ago

Checklist

Describe your issue

As an example, the /timeout command When using tab to complete username, it can complete to an emote. That has no valid purpose, so I would like to submit a bug report to exclude emotes from tab completion when using chat commands.

I know there are other methods for timing people out but my setup is designed for keyboard inputs. Thank you for considering, I think Chatterino is an excellent tool in my application.

Screenshots

No response

OS and Chatterino Version

2.5.1 on Windows 11

iProdigy commented 1 month ago

a bit more nuanced: emotes may be desired in other commands such as /announce

dnsge commented 1 month ago

I think this ties into a larger "context-aware completion" feature that would be nice to have. I was thinking about this back when I overhauled how input completion works. For example, only completing usernames for /ban, /timeout (as the OP mentions), /usercard, etc.

It would be cool if this context-aware completion could automatically open the completion preview dialogue without the user having to type @. For example, you start typing /usercard and as soon as you type the space, it opens the completion dialogue with all recent usernames.

Having context-aware completion for commands may require a big overhaul though, because (if I remember correctly) all the command parsing happens at message send time. Providing different completion strategies based on command would require parsing the input box during typing.