Skip to content
Myr

Update fastwalk to v1.0.8 for better MSYS detection and sorting (#3930)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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

authored by Charlie Vieth · committed by GitHub · parent b4ddffd · Browse files · 3 files+4 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+4 added−3 removed

  • other:+4 added−3 removed

3 files+4 added−3 removed

modified:src/reader.go+1 added
251 unmodified lines
252 conf := fastwalk.Config{253 Follow: opts.follow,254 // Use forward slashes when running a Windows binary under WSL or MSYS255 ToSlash: fastwalk.DefaultToSlash(),256 Sort: fastwalk.SortFilesFirst,257 }258 fn := func(path string, de os.DirEntry, err error) error {259 if err != nil {260 return nil
57 unmodified lines
modified:go.mod+1 added-1 removed
1module github.com/junegunn/fzf23require (4 github.com/charlievieth/fastwalk v1.0.7-0.20240703190418-87029d9318154 github.com/charlievieth/fastwalk v1.0.85 github.com/gdamore/tcell/v2 v2.7.46 github.com/mattn/go-isatty v0.0.207 github.com/mattn/go-shellwords v1.0.128 github.com/rivo/uniseg v0.4.7
12 unmodified lines
modified:go.sum+2 added-2 removed
1github.com/charlievieth/fastwalk v1.0.7-0.20240703190418-87029d931815 h1:4PRbYm9OMgH0bcdZZqMXA/AoOvpGy4l0H6g9Au/kgGA=2github.com/charlievieth/fastwalk v1.0.7-0.20240703190418-87029d931815/go.mod h1:rV19+IF9Y2TYQNy4MqEk5M/spNHjKsA0i71yrsv2p4E=1github.com/charlievieth/fastwalk v1.0.8 h1:uaoH6cAKSk73aK7aKXqs0+bL+J3Txzd3NGH8tRXgHko=2github.com/charlievieth/fastwalk v1.0.8/go.mod h1:yGy1zbxog41ZVMcKA/i8ojXLFsuayX5VvwhQVoj9PBI=3github.com/gdamore/encoding v1.0.0 h1:+7OoQ1Bc6eTm5niUzBa0Ctsh6JbMW6Ra+YNuAtDBdko=4github.com/gdamore/encoding v1.0.0/go.mod h1:alR0ol34c49FCSBLjhosxzcPHQbf2trDkoo5dl+VrEg=5github.com/gdamore/tcell/v2 v2.7.4 h1:sg6/UnTM9jGpZU+oFYAsDahfchWAFW8Xx2yFinNSAYU=6github.com/gdamore/tcell/v2 v2.7.4/go.mod h1:dSXtXTSK0VsW1biw65DZLZ2NKr7j0qP/0J7ONmsraWg=
51 unmodified lines