cinnyapp / cinny

Yet another matrix client
https://cinny.in
GNU Affero General Public License v3.0
1.87k stars 241 forks source link

Commands (slash and go-to) complete and activate anywhere in the input #155

Closed samueldr closed 2 years ago

samueldr commented 2 years ago

Describe the bug

I'm not sure if it's a design decision or a bug, but the behaviour is surprising and may lead to "fun" problems for some users.

The inputs for go-to commands are less likely to cause issues, but I assume if this is a bug, there is a bug for them too.

To Reproduce

Steps to reproduce the behavior:

  1. In a room (or DM)
  2. Type and send To activate markdown mode, type /markdown as if to reply to a question
  3. Observe the input eating /markdown and the command being applied

Think about the more destructive: The command to leave a room is /leave.

Expected behavior

Command input should be anchored to the start of the input box. Only "text content" completion should be anchored at any points.

Screenshots

N/A

Desktop (please complete the following information):

Cinny

Additional context

See #156

kfiven commented 2 years ago

Duplicate of #65

samueldr commented 2 years ago

Oh, didn't see that one while searching sorry!