Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fastwalk: add optional sorting and improve documentation #27

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

charlievieth
Copy link
Owner

@charlievieth charlievieth commented Jul 11, 2024

This commit adds the new SortMode and Config.Sort setting to sort directory 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. It might also have some performance benefits in some use-cases. This was added to make the output of FZF and other tools that print the output of fastwalk a bit nicer.

This commit also improves documentation and comments of exported functions.

@charlievieth charlievieth force-pushed the cev/sort-new branch 7 times, most recently from c1c80ff to 9d9b117 Compare July 18, 2024 03:30
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.
@charlievieth charlievieth changed the title WIP: add sort option fastwalk: add optional sorting and improve documentation Jul 18, 2024
@charlievieth charlievieth marked this pull request as ready for review July 18, 2024 03:46
@charlievieth charlievieth merged commit 861d712 into master Jul 18, 2024
8 checks passed
charlievieth added a commit to charlievieth/fzf that referenced this pull request Jul 18, 2024
This commit updates github.com/charlievieth/fastwalk to v1.0.7 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
charlievieth added a commit to charlievieth/fzf that referenced this pull request Jul 18, 2024
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
charlievieth added a commit to charlievieth/fzf that referenced this pull request Jul 18, 2024
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
junegunn pushed a commit to junegunn/fzf that referenced this pull request Jul 19, 2024
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant