From d1b58601a16388bfad61753f257cebd6d57a9266 Mon Sep 17 00:00:00 2001 From: Chase Bellisime <63214891+crbellis@users.noreply.github.com> Date: Sat, 24 Feb 2024 11:39:34 -0800 Subject: [PATCH] Add plus and dollar sign to terminal paths (#8321) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After fix (file path is now clickable): Screenshot 2024-02-23 at 8 59 45 PM Before fix: Screenshot 2024-02-23 at 9 15 25 PM Release Notes: - Fixed an issue with terminal paths not allowing links when the path included `+` or `$` symbols. ([#8256](https://github.com/zed-industries/zed/issues/#8256)). --- crates/terminal/src/terminal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/terminal/src/terminal.rs b/crates/terminal/src/terminal.rs index 4e86c204ec..c396bf6d1f 100644 --- a/crates/terminal/src/terminal.rs +++ b/crates/terminal/src/terminal.rs @@ -417,7 +417,7 @@ impl TerminalBuilder { let _io_thread = event_loop.spawn(); // DANGER let url_regex = RegexSearch::new(r#"(ipfs:|ipns:|magnet:|mailto:|gemini://|gopher://|https://|http://|news:|file://|git://|ssh:|ftp://)[^\u{0000}-\u{001F}\u{007F}-\u{009F}<>"\s{-}\^⟨⟩`]+"#).unwrap(); - let word_regex = RegexSearch::new(r#"[\w.\[\]:/@\-~]+"#).unwrap(); + let word_regex = RegexSearch::new(r#"[\$\+\w.\[\]:/@\-~]+"#).unwrap(); let terminal = Terminal { task,