Skip to content

krish-r/proximity-sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

proximity-sort

Zig implementation of @jonhoo's proximity-sort.

Why?

I just started learning Zig. And, proximity-sort felt like a good first project.

Overview

The command-line utility sorts the inputs (from stdin) by their path proximity (number of shared leading path components) to a given path.

Example Usage

fd -t f | zig-out/bin/proximity-sort /path/to/file | fzf --reverse --tiebreak=index

Building from Source

If you have zig master installed, you can build this with -

zig build -Doptimize=ReleaseSafe

Credits & References

About

Zig implementation of @jonhoo's proximity-sort.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages