zulip-terminal
zulip-terminal copied to clipboard
Improve handling of pressing `Esc` during message compose
Currently Esc
can be pressed to exit compose, without sending the message.
This can be useful if one wants to cancel the send, but can also be frustrating if accidentally hitting the key after having written a good message which you intend to send.
This can be made worse, if a key is near the Esc
key and used for composition, eg. the ` key for inline code or quote/code blocks.
Ideas for resolving this:
- Prompt with a confirmation popup to exit compose, if there is more than some threshold of content present (could be empty message, could be 5, 10, 15, ... characters)
- Prompt with a variation on a confirmation popup, giving the option to save as a draft
- Automatically save as a draft, but prompt if a draft already exists (like we do now)
- Automatically save as a draft - *only possible if we support more than one draft in the session, ie. improve draft handling generally ~ #302)
Please discuss this in the stream before proceeding with this, since it would be good to get more views on this first.
Hello @zulip/server-hotkeys members, this issue was labeled with the "area: hotkeys" label, so you may want to check it out!
@zulipbot claim
@srdeotarse You have been unassigned from this issue because you have not made any updates for over 14 days. Please feel free to reclaim the issue if you decide to pick up again. Thanks!
@zulipbot claim
I am working on this issue.
@zulipbot claim
@rsashank You have been unassigned from this issue because you have not made any updates for over 14 days. Please feel free to reclaim the issue if you decide to pick up again. Thanks!
I would like to work on this
@zulipbot claim
Welcome to Zulip, @enock-arthur! We just sent you an invite to collaborate on this repository at https://github.com/zulip/zulip-terminal/invitations. Please accept this invite in order to claim this issue and begin a fun, rewarding experience contributing to Zulip!
Here's some tips to get you off to a good start:
- Join me on the Zulip developers' server, to get help, chat about this issue, and meet the other developers.
- Unwatch this repository, so that you don't get 100 emails a day.
As you work on this issue, you'll also want to refer to the Zulip code contribution guide, as well as the rest of the developer documentation on that site.
See you on the other side (that is, the pull request side)!
Hello @enock-arthur, I already have an open PR for this, I'd recommend looking into other issues :)