Add user configurable autocompletes #19747
Labels
A-Autocomplete
A-Composer
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
T-Enhancement
X-Needs-Design
Z-Power-Users
Your use case
What would you like to do?
It'd be great to be able to configure your own replacement rules using the autocompleter--maybe using :emoji_shortcode:, maybe something else. To keep the feature simple it would seem necessary to place restrictions on what text could be used as a shortcode to autocomplete (e.g., must be bracketed with semicolons). Alternatively, this feature could extend the current plaintext emoji replacement functionality.
Why would you like to do it?
If you find yourself typing an explanation of something frequently in a support chat, you could store the explanation in a shortcode and autocomplete it. Or (my use case) you could store the text for a specific inline Markdown image (i.e.,
![](mxc://homeserver.org/media_id)
) to emulate custom emoji (at least until substantial progress is made on matrix-org/matrix-spec-proposals#1951).How would you like to achieve it?
Configuration would use a table in the settings menu with a shortcode -> text mapping, though to start this feature could of course be confined to the config.json file. Configured mappings could also be stored as user account data and synced between Element sessions.
Have you considered any alternatives?
I'm currently using a custom JavaScript shim to emulate something like this functionality, but as you can imagine it's both finicky and fragile.
Additional context
No response
The text was updated successfully, but these errors were encountered: