element-hq / element-hq/element-web
Convenience feature of "paste as quote" and "paste as code"
- Dominant language
- TypeScript
- Stars
- 13.5k
- Forks
- 2.8k
- PR merge metrics
- PR metrics pending
Description
### Your use case
#### What would you like to do?
I would like to paste something from my clipboard into a message/conversation and let element automatically format it as a textual quote or a code block.
#### Why would you like to do it?
Currently, this has to be done manually, which is a hassle. Partly due to the various formatting quirks around handling `>`-style formatting and editing, partly because when you have many lines you wish to quote, quoting each individually with a `>` character is a big hassle. It's also a hassle having to wrap code snippets into ```, because those are a cumbersome to type on some keyboard layouts.
#### How would you like to achieve it?
There are probably many ways to do this, but the android app [conversations](https://github.com/iNPUTmice/Conversations) has implemented this by adding a context/"right-click" field called `Paste as quote`, which paste the clipboard contents and automatically formats it as a quote. I would add a context button like that in addition to one like `Paste as code`.
### Have you considered any alternatives?
I'm not aware of any alternatives to formatting quotes manually in Element.
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.