diff options
| author | Charlie Vieth <charlie.vieth@gmail.com> | 2024-07-19 00:17:41 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-19 13:17:41 +0900 |
| commit | a2c365e7103622cbe313f846675af0cb0826ebca (patch) | |
| tree | ed275210e18080f830bf676e97eafff20c6eaa61 /src | |
| parent | b4ddffdc6167d23077139f5a24a2709097bc660c (diff) | |
| download | fzf-a2c365e7103622cbe313f846675af0cb0826ebca.tar.gz | |
Update fastwalk to v1.0.8 for better MSYS detection and sorting (#3930)
This commit updates github.com/charlievieth/fastwalk to v1.0.8 which
improves MSYS detection and adds optional sorting of directory entries.
It also updates fzf to use the SortFilesFirst sort mode which improves
the output by making it a bit more sorted and grouped by directory
previously entries were visited in directory order (which is basically
random).
PRs Included:
* https://github.com/charlievieth/fastwalk/pull/25
* https://github.com/charlievieth/fastwalk/pull/27
* https://github.com/charlievieth/fastwalk/pull/28
Diffstat (limited to 'src')
| -rw-r--r-- | src/reader.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/reader.go b/src/reader.go index b9368f07..a4049c4e 100644 --- a/src/reader.go +++ b/src/reader.go @@ -253,6 +253,7 @@ func (r *Reader) readFiles(root string, opts walkerOpts, ignores []string) bool Follow: opts.follow, // Use forward slashes when running a Windows binary under WSL or MSYS ToSlash: fastwalk.DefaultToSlash(), + Sort: fastwalk.SortFilesFirst, } fn := func(path string, de os.DirEntry, err error) error { if err != nil { |
