Skip to content

Open detected local paths on Ctrl-click#1947

Open
Sightem wants to merge 1 commit into
contour-terminal:masterfrom
Sightem:path-click
Open

Open detected local paths on Ctrl-click#1947
Sightem wants to merge 1 commit into
contour-terminal:masterfrom
Sightem:path-click

Conversation

@Sightem
Copy link
Copy Markdown

@Sightem Sightem commented May 11, 2026

Description

Add ctrl click support for opening detected local filesystem paths. when no OSC 8 hyperlink is under the mouse, FollowHyperlink now falls back to matching a local path under the cursor. Existing relative paths are resolved against the terminal working directory and local paths are opened via the platform file URL path

Related Issues

N/A

Motivation and Context

There are often paths on the terminal such as build artifacts, logs, or directories that are useful to open directly

How Has This Been Tested?

Added backend coverage for ctrl click path detection of relative existing paths, absolute existing paths, as well as missing paths

Checklist

  • I have read the CONTRIBUTING guide
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • Breaking changes (if any) are documented

@Sightem Sightem requested a review from christianparpart as a code owner May 11, 2026 21:15
@github-actions github-actions Bot added VT: Backend Virtual Terminal Backend (libterminal API) frontend Contour Terminal Emulator (GUI frontend) test Unit tests labels May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Contour Terminal Emulator (GUI frontend) test Unit tests VT: Backend Virtual Terminal Backend (libterminal API)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant