Skip to main content

link_path

Function link_path 

Source
pub fn link_path(styled_text: &str, raw_path: &str, cwd: &Path) -> String
Expand description

Wrap a styled path string in an OSC 8 hyperlink if the terminal supports it. The raw_path is resolved against cwd to produce the file:// URL.