Treat colon as path delimiter

This commit is contained in:
Pascal Kuthe 2023-07-30 16:51:49 +02:00
parent 1cb902ccdb
commit 2cbb46e738
No known key found for this signature in database
GPG Key ID: D715E8655AE166A6

View File

@ -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;