From 2cbb46e738b1d1ca5539bea0091e95e9ab492d5f Mon Sep 17 00:00:00 2001 From: Pascal Kuthe Date: Sun, 30 Jul 2023 16:51:49 +0200 Subject: [PATCH] Treat colon as path delimiter --- matcher/src/config.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/matcher/src/config.rs b/matcher/src/config.rs index 38c4ae8..7065262 100644 --- a/matcher/src/config.rs +++ b/matcher/src/config.rs @@ -32,10 +32,11 @@ impl MatcherConfig { impl MatcherConfig { pub fn set_match_paths(&mut self) { + // compared to fzf we include if cfg!(windows) { - self.delimiter_chars = b"/\\"; + self.delimiter_chars = b"/:\\"; } else { - self.delimiter_chars = b"/"; + self.delimiter_chars = b"/:"; } self.bonus_boundary_white = BONUS_BOUNDARY; self.initial_char_class = CharClass::Delimiter;