oil.nvim icon indicating copy to clipboard operation
oil.nvim copied to clipboard

feature request: Highlights for different file types and permissions

Open xVermillionx opened this issue 1 year ago • 2 comments

Did you check existing requests?

  • [X] I have searched the existing issues

Describe the feature

Similar to what LS_COLORS provides. I would love to see more highlight options for different filetypes and permissions i.e executable bit, setguid or sticky bit, and for sockets, pipes, devices, archive files. Or maybe a way to extend / customize the highlighting by providing a call to execute based on the files stats?

Provide background

I want to quickly see if the file I want to operate on is an executable or has the setguid bit set without needing to enable the permission column and also to see directly if the file is a socket or pipe or device etc.

What is the significance of this feature?

nice to have

Additional details

No response

xVermillionx avatar May 15 '24 14:05 xVermillionx

Second this. Either through extending the highlight groups for manual configuration. Or maybe a more preferable way would be, hooking into a binary such as eza --color=always --icons=always --long --git --no-user and getting styling via that in the same way some plugins utilize bat. I'm seeing some mention of "Adapters" in the README.md so maybe this would be possible.

mahume avatar Apr 13 '25 12:04 mahume

Take a look at #240 and see if that enables what you want

stevearc avatar Jun 01 '25 18:06 stevearc