v1.0.7 Add optional sorting and automatically detect if forward slashes should be used
v1.0.7
This release changes the detection for ToSlash on Windows to only check is the "MSYSTEM"
environment variable is set and removes the detection for Windows Subsystem on Linux (WSL) since it was unreliable (additionally tools like fd
do not attempt to detect if running under WSL).
It also adds a new feature: the ability to sort directory entries before being processed. This does not make the order that directories and files are visited globally deterministic, but it does significantly improve the output Walk and is useful for tools that print said output.
commit 861d712
Author: Charlie Vieth [email protected]
Date: Thu Jul 11 00:39:35 2024 -0400
fastwalk: add optional sorting and improve documentation
This commit adds the new SortMode and Config.Sort setting to sort
a directory's entries before they are processed. This does not make
the global order that directories and entries are visited
non-deterministic but it does help make the output a bit saner compared
to the default directory order. This was added to make the output of FZF
a bit nicer.
This commit also improves documentation and comments of exported
functions.
commit 875daa3
Author: Charlie Vieth [email protected]
Date: Tue Jul 16 12:50:55 2024 -0400
fastwalk: only check if MSYSTEM is set during MSYS/MSYS2
This changes the MSYS/MSYS2 detection to only check if the MSYSTEM
environment variable is set instead of asserting on its value. This
is to support other MSYS environments like UCRT64.
It also removes the check for Windows Subsystem for Linux (WSL) since
it was unreliable and required us to stat and potentially read a file
on initialization (which is bad).
See:
* https://github.com/charlievieth/fastwalk/commit/87029d9318159fb714bd064bbda22d69a11fa9f2#r144282929
* https://github.com/sharkdp/fd/commit/f875ea9a5
commit 87029d9
Author: Charlie Vieth [email protected]
Date: Wed Jul 3 14:59:17 2024 -0400
fastwalk: add MSYS/MSYS2 detection to DefaultToSlash
This change updates DefaultToSlash to also check if we're running in a
MSYS/MSYS2 enviroment since they also use forward slashes.