-
Notifications
You must be signed in to change notification settings - Fork 327
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
Icons of symbolic links to directories #566
Comments
@Naheel-Azawy I'm still trying to keep our color and icon configuration symmetric. And as you know color configuration is still somewhat compatible with |
That would be really great to have an ignore, like when |
Old issue, but I was looking for discussion of link target colors and here I am. I'd be willing to take a stab at getting something together for this. It looks like right now the biggest hurdle is in how to represent that preference in the icon/color mapping; the code that determines how to style the entries in a directory looks pretty straightforward. I could see two options off the bat: we could either use some kind of special value (like a hardcoded string we stuff into the icon map or a field on a Any preference one way or the other? Happy to take any guidance. |
Support LS_COLORS/dircolors use of "target" for symlinks to style them according to the target stat. This mainly applies to directories - file name-based styles will still be based on the name of the link, not its target. This mirrors `ls` behavior.
Support LS_COLORS/dircolors use of "target" for symlinks to select icons and styles for them according to the target stat. This mainly applies to directories - file name-based styles will still be based on the name of the link, not its target. This mirrors `ls` behavior.
Support LS_COLORS/dircolors use of "target" for symlinks to select icons and styles for them according to the target stat. This mainly applies to directories - file name-based styles will still be based on the name of the link, not its target. This mirrors `ls` behavior.
Support LS_COLORS/dircolors use of "target" for symlinks to select icons and styles for them according to the target stat. This mainly applies to directories - file name-based styles will still be based on the name of the link, not its target. This mirrors `ls` behavior.
* use symlink target for stat styling & icons (#566) Support LS_COLORS/dircolors use of "target" for symlinks to select icons and styles for them according to the target stat. This mainly applies to directories - file name-based styles will still be based on the name of the link, not its target. This mirrors `ls` behavior. * remove unnecessary debugging and factor out parsePair in color parsing * move conditional to switch block * clarify ln target behavior in docs * run gofmt on single file --------- Co-authored-by: Gökçehan Kara <gokcehankara@gmail.com>
I have just noticed that the icons of links to directories look like files (ln=🗎). I guess the source shows the reason in
icons.go
:Maybe it's possible to add something like
ln-di
? But some might complain about other icons too. Maybe better ignore checking if it's a link or not and just use the icon of the linked file? Not sure, what do you think?The text was updated successfully, but these errors were encountered: