Skip to content

feat: add support for detecting links in messages and opening them in the default browser#86

Merged
chojs23 merged 2 commits into
chojs23:mainfrom
nexxai:url-detection-opening
May 19, 2026
Merged

feat: add support for detecting links in messages and opening them in the default browser#86
chojs23 merged 2 commits into
chojs23:mainfrom
nexxai:url-detection-opening

Conversation

@nexxai

@nexxai nexxai commented May 17, 2026

Copy link
Copy Markdown
Contributor

Summary

I've implemented the detection of URLs in messages so that a user can quickly open them with their browser.

Why

When someone posts a link or multiple links in a message, I'd like to be able to open them.

How

In the "Message actions" window, I have added the "Open URL" option with the current shortcut key o (the lowercase letter O). If only a single URL is detected in the message, the o key immediately opens the URL in the browser. If multiple links are detected, it will open a submenu where the first 10 messages are available via the shortcut keys of 1-0, and the rest must simply be scrolled to.

I also added some simple highlighting of URLs to make them more obvious.

Testing

  • cargo fmt --all --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test --all-features
  • Manual test in a real terminal (describe below)

Terminal: Ghostty (latest)
OS: macOS Tahoe 26.5

Screenshots or recordings

URLs being detected and highlighted in message:

592879490-2e15db8f-ceec-4bf9-b5aa-a25610eb47f5

Actions menu showing how many URLs were detected:

592874819-4401f900-a090-4e8f-b707-d7af37a1fa94

Actions sub-menu showing detected URLs and hotkeys for quick access:

592874908-bbfbce42-e252-4346-b4ec-35e2b5378aec

Checklist

  • One logical change per PR.
  • No tokens, passwords, MFA codes, or raw auth bodies in code, tests, or logs.
  • Change does not add self-bot automation, mass actions, or scraping.
  • Updated README.md, if behavior or workflows changed.

@nexxai

nexxai commented May 17, 2026

Copy link
Copy Markdown
Contributor Author

This PR replaces #72

@chojs23

chojs23 commented May 18, 2026

Copy link
Copy Markdown
Owner

Could you please rebase this and update the key handling and shortcut labels to follow the new KeyBindings structure?

@nexxai nexxai force-pushed the url-detection-opening branch from 83f4373 to bc1d734 Compare May 18, 2026 04:45
@nexxai

nexxai commented May 18, 2026

Copy link
Copy Markdown
Contributor Author

@chojs23 I've rebased and updated the key handing/shortcut labels as requested

@chojs23 chojs23 merged commit f62eece into chojs23:main May 19, 2026
2 checks passed
@nexxai nexxai deleted the url-detection-opening branch May 19, 2026 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants