From bf515a3d3251c54d04cd8e2e9f422cdd3f789fb8 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sat, 29 Jun 2024 17:11:09 +0900 Subject: Add --walker-path-sep=CHAR to use a different path separator This is needed when you run a Windows binary on WSL or zsh on Windows where forward slashes are expected. export FZF_DEFAULT_OPTS='--walker-path-sep /' Close #3859 --- src/core.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core.go') diff --git a/src/core.go b/src/core.go index caada27c..1dc642f4 100644 --- a/src/core.go +++ b/src/core.go @@ -159,7 +159,7 @@ func Run(opts *Options) (int, error) { // reload or reload-sync action is bound to 'start' event, no need to start the reader eventBox.Set(EvtReadNone, nil) } else { - go reader.ReadSource(opts.Input, opts.WalkerRoot, opts.WalkerOpts, opts.WalkerSkip) + go reader.ReadSource(opts.Input, opts.WalkerRoot, opts.WalkerOpts, opts.WalkerSkip, opts.WalkerSep) } } @@ -212,7 +212,7 @@ func Run(opts *Options) (int, error) { } return false }, eventBox, executor, opts.ReadZero, false) - reader.ReadSource(opts.Input, opts.WalkerRoot, opts.WalkerOpts, opts.WalkerSkip) + reader.ReadSource(opts.Input, opts.WalkerRoot, opts.WalkerOpts, opts.WalkerSkip, opts.WalkerSep) } else { eventBox.Unwatch(EvtReadNew) eventBox.WaitFor(EvtReadFin) -- cgit v1.2.3