dundee / gdu

Fast disk usage analyzer with console interface written in Go
MIT License
3.96k stars 142 forks source link

Make key based settings/toggles available through config/command-line #242

Closed Impact123 closed 6 months ago

Impact123 commented 1 year ago

I pretty much always use the c > Show/hide file count and m > Show/hide latest mtime keys but I couldn't find a way to set these options via the config file or through command-line arguments. Please let me know if it slipped past my eyes. It would be nice if all the options you can toggle via a keyboard key would also be available via command-line arguments and/or through the config file. One way that is probably less work would be to define a set of keys that are "pressed" when gdu starts.

init-keys: cm
gdu --init-keys=cm
dundee commented 6 months ago

Sorry, this issue slipped my attention.

We have added --show-item-count (-C) option in 5.28. I will add option for Show/hide latest mtime as well.