Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

color by type #34

Open
vanzandtj opened this issue Sep 12, 2017 · 1 comment
Open

color by type #34

vanzandtj opened this issue Sep 12, 2017 · 1 comment

Comments

@vanzandtj
Copy link

I suggest assigning colors as follows:
For files, use the same colors as GNU ls by respecting the environment variable LS_COLORS. If that variable is not set, then use the defaults printed by "dircolors -p".
For directories:
For .git, foo.git, .svn, and other configuration management directories: use the same color as for a .tar file.
For .../bin, /Applications, etc: same as an executable, or a .exe file.
For ~/Pictures: same as a .jpg file.
Otherwise, a directory should inherit the color of the contents, with votes weighted by space. I.e., add up the space for all the green files & subdirectories, all the red files & subdirectories, etc. Whichever color accounts for the most space is assigned to the directory.

Coloring by content would make it easier to spot duplicate collections of files, because those directories would be assigned the same color. To make this even easier, one could construct a directory color by averaging over the color of its contents. However, I suggest this be an option rather than the default.

@zz85
Copy link
Owner

zz85 commented Sep 26, 2017

Thanks for the suggestions, I'll take this into consideration when I start working on colors.

@zz85 zz85 mentioned this issue Oct 7, 2017
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants