Skip to content

tui/messages: Add URL click detection for terminals with mouse tracking#2308

Open
vvoland wants to merge 1 commit intodocker:mainfrom
vvoland:fix-url-click
Open

tui/messages: Add URL click detection for terminals with mouse tracking#2308
vvoland wants to merge 1 commit intodocker:mainfrom
vvoland:fix-url-click

Conversation

@vvoland
Copy link
Copy Markdown
Contributor

@vvoland vvoland commented Apr 2, 2026

When mouse cell motion tracking is enabled (tea.MouseModeCellMotion), terminals like Kitty cannot detect and open URLs natively because all mouse events are captured by the application.

Add URL detection on single click so that clicking on a URL in rendered messages opens it in the browser via OpenURLMsg.

@vvoland vvoland requested a review from a team as a code owner April 2, 2026 12:08
When mouse cell motion tracking is enabled (tea.MouseModeCellMotion),
terminals like Kitty cannot detect and open URLs natively because all
mouse events are captured by the application.

Add URL detection on single click so that clicking on a URL in rendered
messages opens it in the browser via OpenURLMsg.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
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.

1 participant