feat: add support for detecting links in messages and opening them in the default browser#86
Merged
Merged
Conversation
Contributor
Author
|
This PR replaces #72 |
Owner
|
Could you please rebase this and update the key handling and shortcut labels to follow the new |
83f4373 to
bc1d734
Compare
Contributor
Author
|
@chojs23 I've rebased and updated the key handing/shortcut labels as requested |
chojs23
approved these changes
May 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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, theokey 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 --checkcargo clippy --all-targets --all-features -- -D warningscargo test --all-featuresTerminal: Ghostty (latest)
OS: macOS Tahoe 26.5
Screenshots or recordings
URLs being detected and highlighted in message:
Actions menu showing how many URLs were detected:
Actions sub-menu showing detected URLs and hotkeys for quick access:
Checklist
README.md, if behavior or workflows changed.