Skip to content

[Feature Request]: add a a tag or special character to allow custom quick replies to a message #1451

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
NomDeTom opened this issue Dec 7, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@NomDeTom
Copy link

NomDeTom commented Dec 7, 2024

Contact Details

NomDeTom

Tell us your idea.

I'd like the app to use an unprintable character to turn the following word into a hyperlink that can be tapped to auto-fill a reply.

The primary purpose would be replying to a bot, auto responder or BBS with contextual replies, e.g. (n)ext, (b)ack, (m)ore, (d)elete, etc.

When I last looked, there were more suitable characters, similar to bel, for this purpose.

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@NomDeTom NomDeTom added the enhancement New feature or request label Dec 7, 2024
@rndmcnlly
Copy link

Slight generalization

I like the idea of this quick reply feature, and I have an idea for how to make it more accessible and generic.

Rather than looking for a magic (perhaps unprintable) character, let's look for spans of text that follow the specific convention of "(n)ext". If the user enables the quick replies UI option in the app, the app can scan for and make tappable spans that appear to be quick-reply options in the same way that it detects and upgrades URLs.

Here's a slightly over-generalized way of detecting these with a regex:

String pattern = "\\w*\\([\\w]{1,3}\\)\\w+";

// These will match
"(b)ack"
"(4)email"
"re(t)urn"

// These won't match
"re(test)turn"  // too many chars in parentheses
"re()turn"      // empty parentheses
"re(t)"         // no chars after parentheses

In this design, no special keyboard is needed for human users to offer one another quick replies.

Major generalization

Interpret the message as Markdown text (applying formatting like bold, italics, lists, whatever), and give special behavior to links with no target. Treat a no-target link as something that should be copied into the message composition field. For example [web](http://example.com/) would display as a link that tries to open in a browser but [back]() renders a button (or link like back) that appends "back" to the current message.

@github-actions github-actions bot added the Stale label May 16, 2025
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 24, 2025
@jamesarich jamesarich reopened this May 24, 2025
@github-actions github-actions bot removed the Stale label May 25, 2025
@NomDeTom
Copy link
Author

Woohoo! So back!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants