You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-6Lines changed: 2 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,7 +132,7 @@ filtering/
132
132
Files and directories can be sorted using a custom comparator (default is alphabetical order).
133
133
If the provided comparator considers two paths equal (i.e., returns `0`), an alphabetical comparator is applied as a tie-breaker to ensure consistent results across all systems.
134
134
135
-
The `PathSorts` class provides a set of basic, ready-to-use comparators, as well as a builder for creating your own tailor-made sorts.
135
+
The `PathSorts` class provides a set of basic, ready-to-use comparators, as well as a builder for creating your own tailor-made sort.
136
136
137
137
```java
138
138
// Example: Sorting.java
@@ -215,7 +215,7 @@ child_limit_static/
215
215
Or you can also set a limitation function, to dynamically choose the number of children displayed in each directory.
216
216
It avoids cluttering the whole console with known large folders (e.g. `node_modules`) but continue to pretty print normally other folders.
217
217
218
-
Use the `ChildLimitBuilder` and `PathMatchers` classes to help you build the limit function that fits your needs.
218
+
Use the `ChildLimits` class to help you build the limit function that fits your needs.
219
219
220
220
```java
221
221
// Example: ChildLimitDynamic.java
@@ -240,10 +240,6 @@ child_limit_dynamic/
240
240
└─ ... (9 files skipped)
241
241
```
242
242
243
-
> [!TIP]
244
-
> *Idea for a future version: helper for custom basic functions (by name, prefix, regex, etc.)*
245
-
246
-
247
243
## Line extension
248
244
You can extend each displayed path with additional information by providing a custom `Function<Path, String>`.
249
245
This is useful to annotate your tree with comments, display file sizes, or add domain-specific notes.
0 commit comments