-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Turn HTML output into links #12888
Copy link
Copy link
Closed
Labels
A-timingsArea: timingsArea: timingsC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-docS-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.
Metadata
Metadata
Assignees
Labels
A-timingsArea: timingsArea: timingsC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-docS-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Problem
In most terminals, if a URL is printed it is turned into a link you can click on for easy opening. This is less true for file paths.
This is less of a problem for
cargo doc --openas cargo will open the page up for you.Places where we are falling short include
cargo doc --target foo --target bar(--opendoesn't work)cargo docinvocation that you can run multiple times, using shell history, without editing in/out--opencargo doccalls wrapped in other tools, likemakecargo build --timings(it'd be awkward to add a--openjust for--timings)Proposed Solution
Turn the file paths into links using ANSI escape codes
Notes
From #12859 (review)