Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve output when used with a wildcard expression #441

Open
Debilski opened this issue Oct 1, 2024 · 2 comments
Open

Improve output when used with a wildcard expression #441

Debilski opened this issue Oct 1, 2024 · 2 comments

Comments

@Debilski
Copy link

Debilski commented Oct 1, 2024

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.

@bootandy
Copy link
Owner

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

@bootandy
Copy link
Owner

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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants