From ef13bf544daec50034009291bc61030831d43ee7 Mon Sep 17 00:00:00 2001 From: woojiq Date: Mon, 29 Jan 2024 18:31:26 +0200 Subject: [PATCH] picker(global-search): append line number to found options --- helix-term/src/commands.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index d0b9047c8ad6f..c645849f1d290 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -2226,6 +2226,7 @@ fn global_search(cx: &mut Context) { let relative_path = helix_stdx::path::get_relative_path(&self.path) .to_string_lossy() .into_owned(); + let relative_path = format!("{}:{}", relative_path, self.line_num + 1); if current_path .as_ref() .map(|p| p == &self.path)