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

Support ln=target in LS_COLORS (#774) #960

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LarsHaalck
Copy link
Contributor

@LarsHaalck LarsHaalck commented Sep 24, 2021

It is allowed to set ln=target instead of a color (e.g. like this), which was not supported by exa.

Setting ln=target highlights a link in the same color as the referred file. Dangling/orphaned links are always colored using the specified or= color.

See related issue (#774) for details

Setting "ln=target" highlights a link in the same color as the referred
file. Dangling/orphaned links are always colored using the specified
"or=" color.
@jbrubake
Copy link

When I built exa using this patch, it does properly color symlinks, but for some reason certain combinations of terminal size (width I think, not height) and directory contents cause exa to always use the --oneline listing style.

I can't figure out what the exact situation is and looking at the patch, I can't see why it would have that effect, but it does @LarsHaalck

@LarsHaalck
Copy link
Contributor Author

LarsHaalck commented Jun 25, 2022

You are right, but I think this is an issue with a previous commit and not with this PR. I also have this when building the exa from source without my PR.

I think it is related to this #990

@jbrubake
Copy link

I didn't see how it could be related to your code. I should have checked to see if their were commits between the latest release and HEAD. I'll take a look later.

Nice work on the symlink patch. Since I found that feature of ls I find not having it annoying

jbrubake added a commit to jbrubake/eza that referenced this pull request May 4, 2024
Setting "ln=target" highlights a link in the same color as the
referred file. Dangling/orphaned links are always colored using the
specified "or=" color.

(Credit to @LarsHaalck who wrote the original ogham/exa#960)
MartinFillon pushed a commit to jbrubake/eza that referenced this pull request Jun 5, 2024
Setting "ln=target" highlights a link in the same color as the
referred file. Dangling/orphaned links are always colored using the
specified "or=" color.

(Credit to @LarsHaalck who wrote the original ogham/exa#960)
jbrubake added a commit to jbrubake/eza that referenced this pull request Jun 6, 2024
Setting "ln=target" highlights a link in the same color as the
referred file. Dangling/orphaned links are always colored using the
specified "or=" color.

(Credit to @LarsHaalck who wrote the original ogham/exa#960)
jbrubake added a commit to jbrubake/eza that referenced this pull request Jun 7, 2024
Setting "ln=target" highlights a link in the same color as the
referred file. Dangling/orphaned links are always colored using the
specified "or=" color.

(Credit to @LarsHaalck who wrote the original ogham/exa#960)
jbrubake added a commit to jbrubake/eza that referenced this pull request Jun 7, 2024
Setting "ln=target" highlights a link in the same color as the
referred file. Dangling/orphaned links are always colored using the
specified "or=" color.

(Credit to @LarsHaalck who wrote the original ogham/exa#960)
jbrubake added a commit to jbrubake/eza that referenced this pull request Jun 7, 2024
Setting "ln=target" highlights a link in the same color as the
referred file. Dangling/orphaned links are always colored using the
specified "or=" color.

(Credit to @LarsHaalck who wrote the original ogham/exa#960)
jbrubake added a commit to jbrubake/eza that referenced this pull request Jun 7, 2024
Setting "ln=target" highlights a link in the same color as the
referred file. Dangling/orphaned links are always colored using the
specified "or=" color.

(Credit to @LarsHaalck who wrote the original ogham/exa#960)
jbrubake added a commit to jbrubake/eza that referenced this pull request Jun 17, 2024
Setting "ln=target" highlights a link in the same color as the
referred file. Dangling/orphaned links are always colored using the
specified "or=" color.

(Credit to @LarsHaalck who wrote the original ogham/exa#960)
jbrubake added a commit to jbrubake/eza that referenced this pull request Jun 26, 2024
Setting "ln=target" highlights a link in the same color as the
referred file. Dangling/orphaned links are always colored using the
specified "or=" color.

(Credit to @LarsHaalck who wrote the original ogham/exa#960)
jbrubake added a commit to jbrubake/eza that referenced this pull request Jul 12, 2024
Setting "ln=target" highlights a link in the same color as the
referred file. Dangling/orphaned links are always colored using the
specified "or=" color.

(Credit to @LarsHaalck who wrote the original ogham/exa#960)
cafkafk pushed a commit to jbrubake/eza that referenced this pull request Aug 28, 2024
Setting "ln=target" highlights a link in the same color as the
referred file. Dangling/orphaned links are always colored using the
specified "or=" color.

(Credit to @LarsHaalck who wrote the original ogham/exa#960)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants