From 1dd28e7b51a913fc28eefc59d01f3b78f1146850 Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Sat, 16 Nov 2024 10:51:28 -0500 Subject: Support {host} in hyperlinks (#1901) * Support {host} in hyperlinks * Improve help text --- src/cli.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index 07a7c7d..737c345 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -432,14 +432,12 @@ pub struct Opt { )] /// Format string for file hyperlinks (requires --hyperlinks). /// - /// The placeholders "{path}" and "{line}" will be replaced by the absolute file path and the - /// line number, respectively. The default value of this option creates hyperlinks using - /// standard file URLs; your operating system should open these in the application registered - /// for that file type. However, these do not make use of the line number. In order for the link - /// to open the file at the correct line number, you could use a custom URL format such as - /// "file-line://{path}:{line}" and register an application to handle the custom "file-line" URL - /// scheme by opening the file in your editor/IDE at the indicated line number. See - /// for an example. + /// Placeholders "{path}" and "{line}" will be replaced by the absolute file path and the line + /// number; "{host}" with the hostname delta is currently running on. The default is to create + /// a hyperlink containing a standard file URI with only the filename, which your terminal or + /// OS should handle. You can specify any scheme, such as "file-line://{path}:{line}" and + /// register an application to handle it. See + /// for details. pub hyperlinks_file_link_format: String, #[arg( -- cgit v1.2.3