Helps finding the same or very similar file names in a directory. For every combination of names, it will print:
- First name and file size in parentheses
- Second name and file size in parentheses
- Levenshtein distance between the normalised names
- First normalised name
- Second normalised name
- Empty line
The name combinations will be sorted by the levenshtein distance. The exactly same normalised strings will have the distance set to zero. The string normalisation converts the names to a sequence of words and removes special characters and particles.
❯ ./closest-file-names .
7 files
21 combinations
go.mod (54)
main.go (3,833)
3
go mod
go main
.git (288)
main.go (3,833)
5
git
go main
.vscode (96)
go.mod (54)
5
vscode
go mod
...