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

A way to not display the @ (at sign) for files with extended attributes #1240

Closed
blt-r opened this issue Aug 26, 2023 · 8 comments
Closed

A way to not display the @ (at sign) for files with extended attributes #1240

blt-r opened this issue Aug 26, 2023 · 8 comments

Comments

@blt-r
Copy link

blt-r commented Aug 26, 2023

Exa displays an at sign after permissions for files which have extended attributes:

.rw-------@ 1.8k blt 26 Aug 19:46  .bash_history
.rw-r--r--@   18 blt  6 Feb 04:00  .bash_logout
.rw-r--r--@  141 blt  6 Feb 04:00  .bash_profile
.rw-r--r--@  492 blt  6 Feb 04:00  .bashrc

Those are kind of annoying, and on systems with selinux every file has an extended attriblute, so it doesn't make sense to mark them

@eggbean
Copy link

eggbean commented Aug 27, 2023

I don't think there is any way to do this, but as a workaround you could define a colour for the setting for extended attributes to be the same as the background colour of your terminal emulator ANSI theme. Then, it wouldn't be visible.

The extended attribute indicator key in $EXA_COLORS is xa.

https://github.com/ogham/exa/blob/master/man/exa_colors.5.md

@blt-r
Copy link
Author

blt-r commented Aug 27, 2023

There's actually ANSII escape code for invisible/hidden text, so EXA_COLORS=xa=8, hides it.

This is a good workaround, but I think it would still be good to have an option for disabling them. Because this way there is an extra whitespace that doesn't do anything and makes the gaps between columns inconsistant.

More importantly, the xa is also responsible for color of the names of extended attributes when using the --extended/-@ option. And setting it to 8 will hide those as well, which is not good.

@daviessm
Copy link
Contributor

It looks like #855 would do this if merged.

It's already been merged into eza: eza-community/eza#61

@cafkafk
Copy link

cafkafk commented Sep 28, 2023

@ariasuni here's one

@ariasuni
Copy link
Collaborator

I just tested it and the @ is still displayed when using eza -l and eza -l -@.

@cafkafk
Copy link

cafkafk commented Sep 30, 2023

Ohh I see, sorry about that then!

@blt-r
Copy link
Author

blt-r commented Sep 30, 2023

So, this issue should probably be transferred to eza

@ariasuni
Copy link
Collaborator

ariasuni commented Oct 1, 2023

Transferred to eza.

eza-community/eza#443

@ariasuni ariasuni closed this as completed Oct 1, 2023
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

No branches or pull requests

5 participants