oberblastmeister/trashy

Feature request: File Size column

scarf005 opened this issue · 1 comments

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

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