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

Add user configurable autocompletes #19747

Open
jackkinsey opened this issue Nov 14, 2021 · 5 comments
Open

Add user configurable autocompletes #19747

jackkinsey opened this issue Nov 14, 2021 · 5 comments
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

Comments

@jackkinsey
Copy link

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

@SimonBrandner
Copy link
Contributor

Related/duplicate of #9136

@SimonBrandner SimonBrandner added A-Autocomplete A-Composer O-Uncommon Most users are unlikely to come across this or unexpected workflow Z-Power-Users labels Nov 14, 2021
@Palid
Copy link
Contributor

Palid commented Nov 17, 2021

Closing #9136 and #13891 in favor of this one.
Requires some product and design input first.

@SimonBrandner SimonBrandner added X-Needs-Info This issue is blocked awaiting information from the reporter and removed X-Needs-Info This issue is blocked awaiting information from the reporter labels Nov 17, 2021
@ShadowJonathan
Copy link
Contributor

Paste from #9136;

I wouldn't recommend using emoji shortcode symbols for this, maybe ;words; instead?

@robintown
Copy link
Member

Kaomoji are another use case for this.

@erkinalp
Copy link
Contributor

dupe: #1122

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

6 participants