Hot Links

Hot Links turn clipboard text into clickable links. You define a regex pattern and a URL template. When something you copy matches the pattern, Clibbits shows a clickable link that opens in your browser.

You configure them once. After that, they just work.


How it works

Each Hot Link has three parts:

Label — a human-readable name shown when the link appears. "Jira Ticket", "GitHub PR", whatever makes sense to you.

Pattern — a regular expression that matches against clipboard text. Use capture groups to extract the parts you need. For example, ([A-Z]+-\d+) captures Jira-style ticket IDs like AUTH-2847 or INFRA-103.

URL Template — the URL to open when clicked. Use $1, $2, etc. to insert captured groups. If your pattern has no capture groups, $1 maps to the full match.


Examples

Label Pattern URL Template
Jira Ticket ([A-Z]+-\d+) https://jira.example.com/browse/$1
GitHub PR #(\d+) https://github.com/org/repo/pull/$1
Commit ([0-9a-f]{7,40}) https://github.com/org/repo/commit/$1
AWS Console (i-[0-9a-f]+) https://console.aws.amazon.com/ec2/home#Instances:search=$1
npm Package ^(@?[\w-]+(?:/[\w-]+)?) https://www.npmjs.com/package/$1
Stack Overflow stackoverflow\.com/questions/(\d+) https://stackoverflow.com/questions/$1

Eligibility filter

Not every clipboard entry gets checked. Clibbits skips anything with 4 or more spaces, since that's likely a sentence rather than an identifier. This keeps Hot Links fast and avoids false positives on prose.

Short strings like ticket IDs, commit hashes, instance IDs, and package names fly right through. Long paragraphs don't.


Capture groups

$0 always maps to the full match. $1 through $9 map to captured groups in order. If your pattern has no capture groups, $1 is treated as the full match for convenience, so you don't need to wrap the whole pattern in parentheses unless you want to.

All substituted values are URL-encoded automatically. You don't need to worry about special characters in ticket IDs or branch names breaking the URL.


Setting them up

Open Clibbits settings, find the Hot Links section, and click "Add Hot Link." Fill in the three fields, hit Add, then Save. The pattern is validated as you type — if the regex is invalid, you'll see a warning before you can save.

You can edit or delete existing Hot Links at any time. Changes take effect immediately after saving.


Back home