cinnyapp / cinny

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

[feat] Edit last message with sed-substitution-like message #478

Open puyoxyz opened 2 years ago

puyoxyz commented 2 years ago

Describe the problem

A feature from Discord that I miss when using Cinny is being able to edit messages by sending s/foo/bar.

Describe the solution you'd like

The same feature

Let's say I send a message The qiuck brown fox jumps over the lazy dog and want to edit the qiuck to quick, I'd send s/qiuck/quick and it would edit to The quick brown fox jumps over the lazy dog

Alternatives considered

Editing normally, which works fine, but this is a nice quality of life feature that would be cool to have.

Additional context

No response

vwkd commented 2 years ago

This again overloads the chat input field for a command (edit last message). Instead this could be a command in a command palette. See #129

williamkray commented 2 years ago

i'm curious how this would interact with things like sedbots which are somewhat common in the matrix ecosystem (which respond to this textual input, and reply to the original message with a "corrected" response. see https://github.com/maubot/sed for example.

obviously, if the editor were to shortstop the message before sending, the sedbot wouldn't be triggered, but is that always the intention? the sedbots can be used to correct other people's messages, which can't be done with this built-in functionality.

at the very least, this should be a feature you can enable/disable rather than something that is enabled by default.