[question] Allow more context in FileStyle::get_style #1696
ngtv2409
started this conversation in
Development
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I think eza should allow filename styling to be based on richer context than just the filename string itself. For example, it could color or dim files depending on whether they are git-ignored.
I managed to get a rough, held by ducktape patch working by duplicating the
FileTypestruct, but this required manually handling Git state outside of the mainGitCachebecauseFileStyle::get_style()only has access toFile, which doesn’t feel like the right approach. Supporting contextual styling such as dimming ignored files would be genuinely useful. And I really wonder why there was not something similar already.Beta Was this translation helpful? Give feedback.
All reactions