[GH-ISSUE #441] Improve output when used with a wildcard expression #194

Closed
opened 2026-06-08 11:26:05 +03:00 by zhus · 2 comments
Owner

Originally created by @Debilski on GitHub (Oct 1, 2024).
Original GitHub issue: https://github.com/bootandy/dust/issues/441

When doing something like dust /home/*/.local/share/Trash the output looks like this, which is somewhat suboptimal:

 11G   ┌── Trash     │███                                                                        │   2%                                                                                           
 12G   │ ┌── files   │███                                                                        │   2%                                                                                           
 12G   ├─┴ Trash     │███                                                                        │   2%                                                                                           
 17G   │ ┌── files   │█████                                                                      │   3%                                                                                           
 17G   ├─┴ Trash     │█████                                                                      │   3%                                                                                           
...
300G ┌─┴ (total)     │██████████████████████████████████████████████████████████████████████████ │ 100%

I think it would be nice to have an option that included the ‘minimal path difference’ in the output, ie. in this case the name of the home folder.

I have seen the -p/--full-paths option but I would only need to have it in the first level. Even better, if it was just shown as Trash (user123) in the output once.

Originally created by @Debilski on GitHub (Oct 1, 2024). Original GitHub issue: https://github.com/bootandy/dust/issues/441 When doing something like `dust /home/*/.local/share/Trash` the output looks like this, which is somewhat suboptimal: ``` 11G ┌── Trash │███ │ 2% 12G │ ┌── files │███ │ 2% 12G ├─┴ Trash │███ │ 2% 17G │ ┌── files │█████ │ 3% 17G ├─┴ Trash │█████ │ 3% ... 300G ┌─┴ (total) │██████████████████████████████████████████████████████████████████████████ │ 100% ``` I think it would be nice to have an option that included the ‘minimal path difference’ in the output, ie. in this case the name of the home folder. I have seen the `-p`/`--full-paths` option but I would only need to have it in the first level. Even better, if it was just shown as `Trash (user123)` in the output once.
zhus closed this issue 2026-06-08 11:26:05 +03:00
Author
Owner

@bootandy commented on GitHub (Oct 18, 2024):

Oh I see, you are looking at different user's Trash directories. Hmm, that's a tricky one, I'll think about this.

<!-- gh-comment-id:2420676059 --> @bootandy commented on GitHub (Oct 18, 2024): Oh I see, you are looking at different user's Trash directories. Hmm, that's a tricky one, I'll think about this.
Author
Owner

@bootandy commented on GitHub (Oct 18, 2024):

Trash (user123)
I suppose it would be possible to generate the output if we did a full diff on the path of the duplicate folders.

Interesting.

<!-- gh-comment-id:2420677240 --> @bootandy commented on GitHub (Oct 18, 2024): ` Trash (user123)` I suppose it would be possible to generate the output if we did a full diff on the path of the duplicate folders. Interesting.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bootandy/archived-dust#194