oberblastmeister / trashy

a cli system trash manager, alternative to rm and trash-cli
Apache License 2.0
362 stars 13 forks source link

Feature request: File Size column #76

Open scarf005 opened 1 year ago

scarf005 commented 1 year ago

Summary

it'd be useful to have a way to list and filter files (--larger-than, --smaller-than) with file sizes.

Example

╭───┬─────────────┬────────┬──────────╮
│ i │ Time        │ Path   │ Size     │
├───┼─────────────┼────────┼──────────┤
│ 3 │ 5 hours ago │ /a.zip │  3.0 KiB │
│ 2 │ 5 hours ago │ /b.zip │ 12.1 MiB │
╰───┴─────────────┴────────┴──────────╯

References

example ncdu output:

--- /home/scarf/.local/share/Trash/files -------------------------------------
                                                   /..
    2.1 GiB [####################################] /foo
  763.4 MiB [#############                       ] /bar
deftdawg commented 9 months ago

fyi: the spec for trashinfo format can be found here: https://specifications.freedesktop.org/trash-spec/trashspec-latest.html