-
Notifications
You must be signed in to change notification settings - Fork 377
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
Feature request: Color certain directories a different color #206
Comments
Hey I have no problem tackling this. Are we looking for this feature to be as specific as adding just the color to folders prefixed with Assuming general, for requirements, are we looking for an additional flag to pass that adds colors based on grouped folder suffixes that occur say more than twice?
Or would it be a default feature? Additionally, since the color map is hardcoded, we could do something like add 5 new colors for these grouped folders and just mod repeat over them if someone had a folder structure loaded with this scenario. thoughts? |
@JustinHallquist i do like your proposal. the more general approach seems to be ideal, although if user can override general using the config file to specify a suffix, then that would be good also. either way works. but, the issue with the count based suffix coloring is that what if in my scenario, i have one one i dont know ruby, but from a pseudo code level, here is my idea.
This proposal gets rid of the need for an additional flag being passed. and is also nicely scaleable. also, in the future, other directory specific features could be added, like adding specific icons to directories with suffixs etc |
I see, thanks for the clarification. I was under the impression we want to color directories with duplicate suffixes in general, not based on existence of suffixes themselves, so that was a misunderstanding on my part. I think, with the clarification, we would want to avoid a default and leave it up to the user to configure. Feel free to elaborate on use cases for a default though. The approach you outlined above makes sense -- so the idea would, then, be to have an extension in the yaml for additional suffixes?
It would be pretty simple to extend that paradigm to prefixes and possibly a regex/wildcard matcher later on if requested, but I think this would be a good start. thoughts? |
Yes, I agree with leaving the configuration upto the user. I agree with your idea completely. |
sorry for the delay, PR is up. |
Hey @JustinHallquist , what was your final design? have a |
My understanding is that as long as you have:
so a user can add it to their config or directly on the colors yaml |
I am not sure if this feature already exists, but if not, I would like to make a feature request.
Feature: Color certain directory patterns a different color. Example: *_vnev would be colored cyan.
Use case: I often use a lot of virtualenvs for python, and my directories always end with the prefix
_venv
. It would be great to visually differentiate those directories with a color and icon.The text was updated successfully, but these errors were encountered: