ranger_devicons
ranger_devicons copied to clipboard
Feature Request: Colored icons
It would be really color if there was an option to color the icons like in https://github.com/ryanoasis/vim-devicons
Any chance this gets implemented? :grin:
Hi @ad-si Thanks for submitting this feature request. That looks pretty rad, I think we might be limited to the ranger colorschemes, but I'll see if this can be achieved using color escape codes and the likes.
initial results don't seem very promising.. escape codes don't get interpreted by ranger but get printed directly.

I'll do some more investigation this weekend to see if I can get it to work.
Did you manage to figure anything out for this?
@CallumHoward not yet. Looks like Ranger completely ignores color escape codes. Also the font color of the linemode seems to be defined in the theme meaning ranger likely does not support partial highlights.
I'm open to suggestions and/or a PR.
This issue has not seen any recent activity and therefore has been marked as stale
. If the issue is no longer relevant, please attend the author so that the issue can be closed.
Still relevant ;-)
Uhm what? Why was it closed? What's the correct code word for the bot @alexanderjeurissen? 😅
Seems one needs to remove the "stale issue" label explicitly.
For now I reopened the issue
This issue has not seen any recent activity and therefore has been marked as stale
. If the issue is no longer relevant, please attend the author so that the issue can be closed.
bump
Thanks for the bump @SuperSandro2000
From my investigations it seems that this is not really feasible at this point in time.
Ranger does not support multi-colored output for its linemodes.
Font color for all text rendered in the linemode is defined by the 'theme'. This is a single color and does not support contextual coloring let alone multi-part color output.
As such, if people really want this feature I'd advise opening an issue upstream in the Ranger project.
This issue has not seen any recent activity and therefore has been marked as stale
. If the issue is no longer relevant, please attend the author so that the issue can be closed.
Still relevant 😉
The only way to get this working is if Ranger starts supporting ANSI escape codes / colors in line modes. Currently changing the color of individual items is limited to color schemes.
ref: https://github.com/ranger/ranger/issues/169 ref: https://github.com/ranger/ranger/issues/68
But those are limited in that highlighting takes place on a per line level.
@ad-si as the OP of this issue I urge you to create an issue upstream in the ranger project if this is something you really want. Without ranger supporting this there is nothing really that I can do.
This issue has not seen any recent activity and therefore has been marked as stale
. If the issue is no longer relevant, please attend the author so that the issue can be closed.
Bump
Bump Bump
This issue has not seen any recent activity and therefore has been marked as stale
. If the issue is no longer relevant, please attend the author so that the issue can be closed.
bump bump bump (added upstream feature request)
I have created a PR to add ANSI escape codes support in the ranger browser column, which makes it possible for colored icons or partially highlighted texts. See ranger/ranger#2445.
This issue has not seen any recent activity and therefore has been marked as stale
. If the issue is no longer relevant, please attend the author so that the issue can be closed.
bump bump bump bump
This issue has not seen any recent activity and therefore has been marked as stale
. If the issue is no longer relevant, please attend the author so that the issue can be closed.
BUMP!
This issue has not seen any recent activity and therefore has been marked as stale
. If the issue is no longer relevant, please attend the author so that the issue can be closed.
bump
This issue has not seen any recent activity and therefore has been marked as stale
. If the issue is no longer relevant, please attend the author so that the issue can be closed.
…
This issue has not seen any recent activity and therefore has been marked as stale
. If the issue is no longer relevant, please attend the author so that the issue can be closed.
I have been using @XuehaiPan's PR branch for 3 months now and it works without problem. I would love to see it reviewed and discussed so this cool feature can be merged and shared with everyone.