zulip / zulip

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
https://zulip.com
Apache License 2.0
21.6k stars 7.85k forks source link

Add support for message shortcuts. #3220

Open roberthoenig opened 7 years ago

roberthoenig commented 7 years ago

Idea:

It would be a useful feature for Zulip to include a system for message shortcuts, that is, shortenings for longer phrases and established wordings.

Examples:

Implementation proposals:

Discussion

Please share your thoughts on this in the comments or on in the Zulip discussion on this.

timabbott commented 7 years ago

This sounds like a great feature idea.

penCsharpener commented 7 years ago

can typeahead also be fired after two characters have been entered? I'd probably prefer it if it didn't mix with the emojis. something like >> I can se working. or two ## or ::. Another logical option would be ... because it suggests that more is coming.

roberthoenig commented 7 years ago

Yup, :: is definitely preferable to :. Rethinking this, it might be actually better to refrain from using any special combination, since that'd be again something new a user would have to learn. Instead, I think aliases are the way to go, with the default alias for a text snippet being the snippet itself. On entering the first few characters of an alias, it'll pop up in the compose box as an autocomplete suggestion, which could then be used by pressing e.g. alt+enter.

penCsharpener commented 7 years ago

agree, and if you wanted to use a special conbination you can integrate them in the alias yourself.

showell commented 7 years ago

I like this idea too. We'd need some discussion on the exact details before implementing it, but I think the initial feedback is positive enough that we'd probably find a a good approach.

JayjeetAtGithub commented 6 years ago

@zulipbot claim

zulipbot commented 6 years ago

Welcome to Zulip, @JayjeetAtGithub! We just sent you an invite to collaborate on this repository at https://github.com/zulip/zulip/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:

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)!

JayjeetAtGithub commented 6 years ago

@zulipbot abandon

dmagrinya commented 5 years ago

@zulipbot claim

zulipbot commented 5 years ago

Welcome to Zulip, @DidacMC! We just sent you an invite to collaborate on this repository at https://github.com/zulip/zulip/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:

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)!

dmagrinya commented 5 years ago

Hello everyone! I have some backend work ready to review. It's far to be finished (frontend work pending, define a real set of shortcuts, maybe make the list of shortcuts more "configurable", ...), but I'd appreciate some feedback about the current state and next steps. Meanwhile I'll start working in the frontend.

zulipbot commented 5 years ago

Hello @DidacMC, you have been unassigned from this issue because you have not updated this issue or any referenced pull requests for over 14 days.

You can reclaim this issue or claim any other issue by commenting @zulipbot claim on that issue.

Thanks for your contributions, and hope to see you again soon!

dmagrinya commented 5 years ago

Still working on it.

jacktigg commented 5 years ago

@zulipbot claim

zulipbot commented 5 years ago

Welcome to Zulip, @jacktigg! We just sent you an invite to collaborate on this repository at https://github.com/zulip/zulip/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:

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)!

jacktigg commented 5 years ago

@zulipbot abandon

salcodes1 commented 5 years ago

@zulipbot claim

zulipbot commented 5 years ago

Hello @alexsandulescu, you have been unassigned from this issue because you have not updated this issue or any referenced pull requests for over 14 days.

You can reclaim this issue or claim any other issue by commenting @zulipbot claim on that issue.

Thanks for your contributions, and hope to see you again soon!

rajvaibhavdubey commented 5 years ago

@zulipbot claim

zulipbot commented 5 years ago

Hello @rajvaibhavdubey, you have been unassigned from this issue because you have not updated this issue or any referenced pull requests for over 14 days.

You can reclaim this issue or claim any other issue by commenting @zulipbot claim on that issue.

Thanks for your contributions, and hope to see you again soon!

Abhishek-Balaji commented 5 years ago

@zulipbot claim

zulipbot commented 5 years ago

Welcome to Zulip, @Abhishek-Balaji! We just sent you an invite to collaborate on this repository at https://github.com/zulip/zulip/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:

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)!

zulipbot commented 5 years ago

Hello @Abhishek-Balaji, you have been unassigned from this issue because you have not updated this issue or any referenced pull requests for over 14 days.

You can reclaim this issue or claim any other issue by commenting @zulipbot claim on that issue.

Thanks for your contributions, and hope to see you again soon!

Abhishek-Balaji commented 5 years ago

Working on it.

Abhishek-Balaji commented 5 years ago

@zulipbot abandon

Abhishek-Balaji commented 5 years ago

@zulipbot claim

Abhishek-Balaji commented 5 years ago

@zulipbot claim

Abhishek-Balaji commented 4 years ago

@timabbott @roberthoenig Should I just stick to predefined shortcuts as of now or would you like me to enable a page for adding new custom shortcuts in organizational settings similar to custom emojis?

timabbott commented 4 years ago

I had been imagining (A) A totally generic system and (B) it being a per-user feature more like "alert words" (maybe with eventually the option for admins to set a few to be available to all users).

I think this probably isn't a great project for a first-time contributor; there's a few somewhat tricky design decisions we'll want to make.

Abhishek-Balaji commented 4 years ago

Screenshot from 2019-11-19 08-07-12 @timabbott I've been working on something like this. Is this the idea you are interested in? Should I continue or drop the issue?

timabbott commented 4 years ago

Well, the idea I'd had in mind was a bit more like GitHub's "saved replies" feature, with that sort of thing available as typeahead if one doesn't one to move one's hand to the mouse. With that in mind, I'd build the "saved replies" type feature first and then add the keyboard typeahead for it.

To start with, we'll want a backend for storing these; I think a table called SavedReply with backend fields user_profile, name, and content would be a good structure.

Abhishek-Balaji commented 4 years ago

@timabbott I got it. I'll go through this.

zulipbot commented 4 years ago

Hello @Abhishek-Balaji, you claimed this issue to work on it, but this issue and any referenced pull requests haven't been updated for 10 days. Are you still working on this issue?

If so, please update this issue by leaving a comment on this issue to let me know that you're still working on it. Otherwise, I'll automatically remove you from this issue in 4 days.

If you've decided to work on something else, simply comment @zulipbot abandon so that someone else can claim it and continue from where you left off.

Thank you for your valuable contributions to Zulip!

Abhishek-Balaji commented 4 years ago

@zulipbot abandon