Repository navigation
Commit 60b98c2
Add -v flag for version/natural sort of directory entries
Implements natural sorting (numeric-aware) matching Linux tree's -v flag.
The --version flag (without -v short alias) is now used to display the
version number.
Closes #20
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 5eb6bb8 commit 60b98c2
10 files changed
Lines changed: 197 additions & 45 deletions
File tree
- src
- __tests__
- __fixtures__/numbered-files
- __snapshots__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
73 | 75 | | |
74 | | - | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| |||
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| 100 | + | |
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
| |||
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
0 commit comments