diamondburned / dissent

Tiny native Discord app
https://flathub.org/apps/details/so.libdb.dissent
GNU General Public License v3.0
1.23k stars 39 forks source link

Implement lazy slash commands #174

Open diamondburned opened 10 months ago

diamondburned commented 10 months ago

The current autocompletion API is too weak to implement actual slash commands in the input. It's also really hard to fit rich text boxes within the TextInput, and handling text bounds is very complicated.

This issue proposes to use the autocompletion API just for the initial / prefix and autocompletion, after which a new dialog will be popped up with a list of arguments to be used as buttons rather than emulating command-like behavior. In the future, we can consider replacing this method, but for now, it's better to at least have something.

The command dialog can look like this: