-
Notifications
You must be signed in to change notification settings - Fork 444
Closed
Description
So I was trying the Hyperlink support in Windows Terminal Preview 1.4 but it doesn't seem to work (hyperlinks source is shown instead of actual links.)
Raw output
❯ git --no-pager show dd88342018aa239c77d7667bc988f0ff5db4610a
commit dd88342018aa239c77d7667bc988f0ff5db4610a
Author: Dan Davison <[email protected]>
Date: Thu Sep 17 21:35:46 2020 -0400
cargo fmt
diff --git a/src/tests/test_example_diffs.rs b/src/tests/test_example_diffs.rs
index ba847c2..9f1a257 100644
--- a/src/tests/test_example_diffs.rs
+++ b/src/tests/test_example_diffs.rs
@@ -819,11 +819,15 @@ src/align.rs
"--line-numbers",
]);
let output = integration_test_utils::run_delta(GIT_DIFF_SINGLE_HUNK, &config);
- assert!(output.contains("
-@@ -71,11 +71,8 @@ impl<'a> Alignment<'a> {"));
- assert!(!output.contains("
+ assert!(output.contains(
+ "
+@@ -71,11 +71,8 @@ impl<'a> Alignment<'a> {"
+ ));
+ assert!(!output.contains(
+ "
-@@ -71,11 +71,8 @@ impl<'a> Alignment<'a> {"));
+@@ -71,11 +71,8 @@ impl<'a> Alignment<'a> {"
+ ));
ansi_test_utils::assert_line_has_no_color(
&output,
9,
Delta output
Other information
If I instead try the "Validation Steps Performed" snippet in microsoft/terminal#7251 (comment), it works as expected:
In case it helps, these are the relevant options in my .gitconfig:
[core]
pager = delta
[delta]
hyperlinks = true
line-numbers = true
line-numbers-minus-style = "#660000"
line-numbers-zero-style = "#333333"
line-numbers-plus-style = "#006600"
minus-style = "#999999" "#330000"
plus-style = "#999999" "#003300"
minus-emph-style = "#cccccc" "#660000"
plus-emph-style = "#cccccc" "#006600"
syntax-theme = TwoDark
I also added this to my Microsoft.PowerShell_profile.ps1 (as per as per microsoft/terminal#7251)
$ESC = "`e"
Metadata
Metadata
Assignees
Labels
No labels