supercrabtree / k

k is the new l, yo
1.78k stars 123 forks source link

size of directories #80

Closed excalibur1234 closed 6 years ago

excalibur1234 commented 7 years ago

k shows the size of directories to be 4.1k while this is technically correct, it is a little confusing. i would prefer to not see any size of directories (e.g. display a - symbol instead).

Mange commented 7 years ago

It's still useful as the number of files in a directory affects its size. I've seen directories that took megabytes in size because they had thousands of files in them. It was hard to open such a directory and having tools that displayed the directory size helped me to find the issues without having to open the directories and count filew (which would take minutes).

On Fri, Aug 4, 2017, 19:29 excalibur1234 notifications@github.com wrote:

k shows the size of directories to be 4.1k while this is technically correct, it is a little confusing. i would prefer to not see any size of directories (e.g. display a - symbol instead).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/supercrabtree/k/issues/80, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAGP6PyraS8QBZaGT5yQLO0Xmr3LEzJks5sU1UQgaJpZM4Ot_Bz .

excalibur1234 commented 7 years ago

i see your point.

but in this case, i would suggest using a separate color palette for directories: use black/grey/white colors (like the color palette for dates) make all sizes of 4.1k almost invisible and directories >100k (please adjust this number as you see fit) very clearly visible.

Mange commented 7 years ago

That sounds useful!

excalibur1234 commented 7 years ago

i just tested this fork: https://github.com/teancom/k

it has dynamic colors of sizes and ages of directories/files. this can help to improve the situation a little - but not solve it.

excalibur1234 commented 7 years ago

it looks like exa is currently implementing many features of k: https://github.com/ogham/exa

if exa's development speed stays the same, i am pretty sure that it will be an all-around better alternative to k pretty soon.

supercrabtree commented 6 years ago

PRs welcome