duf icon indicating copy to clipboard operation
duf copied to clipboard

[Feature] Allow user to reorder column view

Open C0rn3j opened this issue 4 months ago • 0 comments

I was sort of hoping setting -output would reorder the columns by its content on its own.

  -output string
        output fields: mountpoint, size, used, avail, usage, inodes, inodes_used, inodes_avail, inodes_usage, type, filesystem

However
duf -output 'mountpoint, usage, filesystem' (default sort) and
duf -output 'filesystem, mountpoint, usage' are functionally identical.

I would welcome if my ordering in the output was respected.
To not break things for users as is, maybe it should be hidden behind a -order-columns: default, custom flag.

C0rn3j avatar Mar 03 '24 15:03 C0rn3j