Skip to content

Add clickable URL links in message view#96

Merged
markqvist merged 1 commit intomarkqvist:mainfrom
MatthieuTexier:main
Apr 12, 2026
Merged

Add clickable URL links in message view#96
markqvist merged 1 commit intomarkqvist:mainfrom
MatthieuTexier:main

Conversation

@MatthieuTexier
Copy link
Copy Markdown
Contributor

This change makes URLs in LXMF message content clickable in the Sideband UI (Android + desktop):

Detects plain URLs in message text:
http://…
https://…
www.…
Wraps them in Kivy [ref=URL]URL[/ref] markup before applying multilingual_markup.
Wires the message MDLabel to call a handler when a [ref] is clicked.
Opens http:// / https:// links in the system browser via webbrowser.open.
Existing [ref=…] markup in messages is preserved as‑is and not double‑wrapped.

I was not able to fully rebuild an Android APK in my environment due to unrelated Android toolchain / python-for-android / codec2 build issues.
The feature and tests above were validated on Linux desktop using the same Kivy/KivyMD code paths that are used on Android.

@markqvist markqvist merged commit 2aec5c0 into markqvist:main Apr 12, 2026
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