Skip to content
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

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

Open
1 task done
Nestpebble opened this issue Dec 7, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Nestpebble
Copy link

Nestpebble 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
@Nestpebble Nestpebble 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.

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

2 participants