Skip to content

Commit 7bb8183

Browse files
committed
Update fastwalk to v1.0.8 for better MSYS detection and sorting
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: * charlievieth/fastwalk#25 * charlievieth/fastwalk#27 * charlievieth/fastwalk#28
1 parent 9e92b6f commit 7bb8183

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module github.com/junegunn/fzf
22

33
require (
4-
github.com/charlievieth/fastwalk v1.0.7-0.20240703190418-87029d931815
4+
github.com/charlievieth/fastwalk v1.0.8
55
github.com/gdamore/tcell/v2 v2.7.4
66
github.com/mattn/go-isatty v0.0.20
77
github.com/mattn/go-shellwords v1.0.12

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
github.com/charlievieth/fastwalk v1.0.7-0.20240703190418-87029d931815 h1:4PRbYm9OMgH0bcdZZqMXA/AoOvpGy4l0H6g9Au/kgGA=
2-
github.com/charlievieth/fastwalk v1.0.7-0.20240703190418-87029d931815/go.mod h1:rV19+IF9Y2TYQNy4MqEk5M/spNHjKsA0i71yrsv2p4E=
1+
github.com/charlievieth/fastwalk v1.0.8 h1:uaoH6cAKSk73aK7aKXqs0+bL+J3Txzd3NGH8tRXgHko=
2+
github.com/charlievieth/fastwalk v1.0.8/go.mod h1:yGy1zbxog41ZVMcKA/i8ojXLFsuayX5VvwhQVoj9PBI=
33
github.com/gdamore/encoding v1.0.0 h1:+7OoQ1Bc6eTm5niUzBa0Ctsh6JbMW6Ra+YNuAtDBdko=
44
github.com/gdamore/encoding v1.0.0/go.mod h1:alR0ol34c49FCSBLjhosxzcPHQbf2trDkoo5dl+VrEg=
55
github.com/gdamore/tcell/v2 v2.7.4 h1:sg6/UnTM9jGpZU+oFYAsDahfchWAFW8Xx2yFinNSAYU=

src/reader.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ func (r *Reader) readFiles(root string, opts walkerOpts, ignores []string) bool
253253
Follow: opts.follow,
254254
// Use forward slashes when running a Windows binary under WSL or MSYS
255255
ToSlash: fastwalk.DefaultToSlash(),
256+
Sort: fastwalk.SortFilesFirst,
256257
}
257258
fn := func(path string, de os.DirEntry, err error) error {
258259
if err != nil {

0 commit comments

Comments
 (0)