element-hq / element-meta

Shared/meta documentation and project artefacts for Element clients
66 stars 11 forks source link

Allow editing of inserted usernames, reverting the "helpful" conversion to display name. #2225

Open vi opened 7 months ago

vi commented 7 months ago

Your use case

What would you like to do?

I want to edit fully specified username (like @user:matrix.myserver.net) after inserting it from clipboard.

Currently it element-web turns it into a bubble like that:

bubble

that can no longer be edited, only removed.

Why would you like to do it?

Sometimes I want to invite a related user (i.e. other username on the same server or other server for the same username).

How would you like to achieve it?

For example, turn the bubble back into plain text when cursor is moved into it (e.g. "left" keyboard button is pressed), like with tags on StackOverflow.

Have you considered any alternatives?

Workaround: insert the user specified elsewhere, edit it there, copy it again then insert into Element's invite textbox.

This is hindered by the fact that usernames are not selectable / copyable either in the invite window.

Additional context

No response