Allow for custom hyperlinks for matched patterns
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 44.7k
- Forks
- 3.6k
- Avg merge
- 21m
- Merged PRs (30d)
- 1
Description
- I am on the latest Hyper.app version
- I have searched the issues of this repo and believe that this is not a duplicate
- OS version and name: macOS 10.15
- Hyper.app version: 3.0.2
- Link of a Gist with the contents of your .hyper.js: https://gist.github.com/4e4b1f6a93bd6ee16694d17ed80826c8
- Relevant information from devtools (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere):
- The issue is reproducible in vanilla Hyper.app:
Is Vanilla
Issue
I'd like to be able to make arbitrary patterns hyperlinkable. Consider the old plugin, which seems to have recognized e-mail addressed and made them hyperlinkable. I'd like to do something similar with other patterns, such as with Python's bpo-NNNN (which would link to bugs.python.org/issues/NNNN).
I'd like to be able to achieve this while relying on the code within Hyper.js to render the links and handle the click events. Ideally, Hyper.js would offer a configuration parameter mapping regexes to their hyperlinks and allowing groups from the regexes to be specified in the resultant hyperlink. Extra credit if the rendering could also be a javascript function accepting the match object and returning the hyperlink.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading Hyper.js's existing matched-pattern hyperlink rendering and click handling, then compare it with the linked hyperlinks plugin. Define how configuration maps regex matches to URLs, including capture groups and the optional match-object function. Done means arbitrary patterns such as Python bpo-NNNN can render as clickable links; the issue names no files or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- desktop, frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100