Giter VIP home page Giter VIP logo

ranger_devicons's Introduction

ranger_devicons's People

Contributors

alexanderjeurissen avatar anderrasovazquez avatar babkock avatar bekaboo avatar cab-1729 avatar cjbassi avatar crivotz avatar echasnovski avatar echuraev avatar fdw avatar fedebenelli avatar j-degreef avatar kevinhwang91 avatar kitty-panics avatar krook1024 avatar labatata101 avatar limakzi avatar logandungeon avatar magnetophon avatar manujchandra avatar monirzadeh avatar neilweidinger avatar prateekpunetha avatar reykim7854 avatar sim590 avatar sohorx avatar the-compiler avatar westofer avatar xuehaipan avatar yagua avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ranger_devicons's Issues

No fallback icons (Source Code Pro patched NERDfont + urxvt)

Describe the bug
There are no icons for pdf files - they appear as missing symbol boxes. That's also true for a lot of other file types.

To Reproduce
Open ranger in urxvt

Relevant .Xresources:

URxvt*font: xft:SauceCodePro\ Nerd \Font:size=10,xft:symbola:size=10:minspace=False

Expected behavior
It would be nice to have a fallback icon.

Screenshots
Selection_364

Environment

  • urxvt
  • zsh 5.8

Plugin overwrites "filename" linemode

Describe the bug
When the plugin is installed the filename linemode behaves the same way as the devicons linemode.

To Reproduce
Steps to reproduce the behavior:

  1. Install plugin
  2. specify filename linemode (e.g. through default_linemode filename in rc.conf)
  3. devicon glyphs are shown, which is different from the default behavior

Additional context
It looks like the filename linemode gets overwritten in __init__.py. Removing the affected class solves the problem for me. I apologize if this is intended behavior, however to me it doesn't make sense to make the devicons and filename linemodes behave the same way.

Support plain unicode

While the patched fonts will definitely offer an infinitely bigger space of options, why not use the glyphs already in unicode? That adds portability, even if at the cost of versatility & blingness ..
πŸ“πŸ“‚πŸ—ƒοΈπŸ—„οΈπŸŽžοΈπŸ“½οΈπŸŽΌπŸŽ΅πŸŽΆπŸ–ΌοΈβš’οΈ

Missing Icons

i Install the full package of nerd-fonts in archlinux, using currently ProFont Windows.
Only some icons show off:

screen

feature request: easy updates

Is there a way to keep this wonderful plugin up to date that doesn't involve manually checking this repo?

As a partial solution I suggest changing the line that is inserted to rc.conf to include where the plugin came from:

# a plugin that adds file glyphs / icon support to Ranger:
# https://github.com/alexanderjeurissen/ranger_devicons
default_linemode devicons

That way, when you update ranger, and diff rc.conf, you are reminded to have a look here.

Does not work despite fonts being installed

I have SauceProCode as my terminal font and when I open devicons.py in vim I can see the symbols, however in ranger I only see additional empty space next to file/directory names after installing ranger_devicons. In other words I don't see the icons at all in ranger. Also the fc-list command detects SauceProCode. I installed the fonts through the AUR.

The plugin crashes due to invalid syntax error: path := os.getenv(key))

Describe the bug
Plugin crashes for some reason. Here's the ranger debug mode output:

ranger version: ranger-master 
Python version: 3.6.9 (default, Jan 26 2021, 15:33:00) [GCC 8.4.0]
Locale: en_US.UTF-8

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/ranger/core/main.py", line 465, in load_settings
    module = importlib.import_module('plugins.' + plugin)
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/developer/.config/ranger/plugins/ranger_devicons/__init__.py", line 4, in <module>
    from .devicons import *
  File "/home/developer/.config/ranger/plugins/ranger_devicons/devicons.py", line 20
    ] if (path := os.getenv(key))}
               ^
SyntaxError: invalid syntax

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/ranger/core/main.py", line 122, in main
    load_settings(fm, args.clean)
  File "/usr/local/lib/python3.6/dist-packages/ranger/core/main.py", line 472, in load_settings
    fm.notify(ex_msg, bad=True)
  File "/usr/local/lib/python3.6/dist-packages/ranger/core/actions.py", line 177, in notify
    raise Exception(str(obj))
Exception: Error while loading plugin 'ranger_devicons'

ranger crashed. Please report this traceback at:
https://github.com/ranger/ranger/issues

Environment (please complete the following information):

  • OS + version: [Ubuntu 18.04]
  • shell [bash]
  • shell version [4.4.20]

Ranger devicons (please complete the following information):

  • version / commit [ranger-master]
  • output of tree ~/.config/ranger
β”œβ”€β”€ bookmarks
β”œβ”€β”€ commands_full.py
β”œβ”€β”€ commands.py
β”œβ”€β”€ history
β”œβ”€β”€ plugins
β”‚Β Β  β”œβ”€β”€ __init__.py
β”‚Β Β  β”œβ”€β”€ __pycache__
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ __init__.cpython-36.opt-1.pyc
β”‚Β Β  β”‚Β Β  └── __init__.cpython-36.pyc
β”‚Β Β  └── ranger_devicons
β”‚Β Β      β”œβ”€β”€ CONTRIBUTING.MD
β”‚Β Β      β”œβ”€β”€ devicons.py
β”‚Β Β      β”œβ”€β”€ __init__.py
β”‚Β Β      β”œβ”€β”€ LICENSE
β”‚Β Β      β”œβ”€β”€ LICENSE_NERDFONT
β”‚Β Β      β”œβ”€β”€ __pycache__
β”‚Β Β      β”‚Β Β  β”œβ”€β”€ __init__.cpython-36.opt-1.pyc
β”‚Β Β      β”‚Β Β  └── __init__.cpython-36.pyc
β”‚Β Β      β”œβ”€β”€ README.md
β”‚Β Β      └── screenshot.png
β”œβ”€β”€ rc.conf
β”œβ”€β”€ scope.sh
└── tagged

4 directories, 19 files

Made open folders display open folder icon, 1 LOC change

Is your feature request related to a problem? Please describe.
This is not related to a problem, just a mere visual difference

Describe the solution you'd like
Wrote the below code on the end of the file of the plugin:

def devicon(file): if file.realpath == os.getcwd(): return dir_node_exact_matches.get(file.relative_path, 'ο„•') elif file.is_directory: return dir_node_exact_matches.get(file.relative_path, 'ο„”') return file_node_exact_matches.get(os.path.basename(file.relative_path), file_node_extensions.get(file.extension, 'ξ˜’'))

Describe alternatives you've considered
This does not seem to be terribly difficult to implement, I don't know if my code is the most efficient though.

Additional context
The code on my terminal:
code_improve
The effect it had:
ranger_dev_plus

Icon missing

Describe the bug
ranger_devicons is not loaded

To Reproduce
Steps to reproduce the behavior:

  1. install ranger_devicons properly
  2. launch ranger

Environment (please complete the following information):

  • archlinux 5.14.2-arch1-2
  • zsh 5.8 (x86_64-pc-linux-gnu)

Ranger devicons (please complete the following information):

  • version / commit [e.g. HEAD]
  • output of tree ~/.config/ranger [can be installed on most OS using default package manager e.g. apt-get install tree]
/home/user/.config/ranger/
β”œβ”€β”€ commands_full.py
β”œβ”€β”€ commands.py
β”œβ”€β”€ plugins
β”‚Β Β  β”œβ”€β”€ __init__.py
β”‚Β Β  β”œβ”€β”€ __pycache__
β”‚Β Β  β”‚Β Β  └── __init__.cpython-39.opt-1.pyc
β”‚Β Β  └── ranger_devicons
β”‚Β Β      β”œβ”€β”€ CONTRIBUTING.MD
β”‚Β Β      β”œβ”€β”€ devicons.py
β”‚Β Β      β”œβ”€β”€ __init__.py
β”‚Β Β      β”œβ”€β”€ LICENSE
β”‚Β Β      β”œβ”€β”€ LICENSE_NERDFONT
β”‚Β Β      β”œβ”€β”€ __pycache__
β”‚Β Β      β”‚Β Β  β”œβ”€β”€ devicons.cpython-39.opt-1.pyc
β”‚Β Β      β”‚Β Β  └── __init__.cpython-39.opt-1.pyc
β”‚Β Β      β”œβ”€β”€ README.md
β”‚Β Β      └── screenshot.png
β”œβ”€β”€ rc.conf
β”œβ”€β”€ rifle.conf
└── scope.sh

Additional context
#92 uses env to set these XDG_DIRs, but dit not provide a default path. if those variables are not set (when using a wm not de), it would cause an index out of range error. by comparison, icons are showing when using f3be2e6

ranger -d output

ranger version: ranger 1.9.3
Python version: 3.9.7 (default, Aug 31 2021, 13:28:12) [GCC 11.1.0]
Locale: en_US.UTF-8

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/ranger/core/main.py", line 447, in load_settings
    module = importlib.import_module('plugins.' + plugin)
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/home/user/.config/ranger/plugins/ranger_devicons/__init__.py", line 4, in <module>
    from .devicons import *
  File "/home/user/.config/ranger/plugins/ranger_devicons/devicons.py", line 12, in <module>
    XDG_DOCUMENTS_DIR = XDG_DOCUMENTS_DIR.split('/')[-2]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/ranger/core/main.py", line 119, in main
    load_settings(fm, args.clean)
  File "/usr/lib/python3.9/site-packages/ranger/core/main.py", line 454, in load_settings
    fm.notify(ex_msg, bad=True)
  File "/usr/lib/python3.9/site-packages/ranger/core/actions.py", line 177, in notify
    raise Exception(str(obj))
Exception: Error while loading plugin 'ranger_devicons'

ranger crashed. Please report this traceback at:
https://github.com/ranger/ranger/issues

Text to rc.conf not added properly

When installing with make install my rc.conf ends up looking like this:

set wrap_scroll true
set preview_images true
set preview_images_method w3m
set confirm_on_delete always
set show_hidden true
map <C-f> fzf_select
map <delete> delete# a plugin that adds file glyphs / icon support to Ranger:\n# https://github.com/alexanderjeurissen/ranger_devicons\ndefault_linemode devicons

PR with new config filenames

Hello,
I have a PR nearly ready with a newspaper icon for log files and several more config file names but I just discover that video files are ignored right now.
I'll try to include these in my PR.
Should be ready by tomorrow or monday.
BR, JΓ©rΓ΄me

Strange behaviour with icons

Hi.

First of all, thanks for the awesome work, keep it up!

So, here is the issue I am facing:
When opening ranger, some icons do not show: it seems to occur mostly on folders of "unknown types" (so, folders which aren't defined in the devicons.py) .
Also, some icons show only when the cursor is on them.

2019-07-18-212232_570x259_scrot
2019-07-18-212250_528x236_scrot
2019-07-18-212301_515x227_scrot

I am currently using urxvt v9.22 .
Usinf DejaVu Sans Mono for Powerline and DejaVu Sans Mono Nerd Font.
using the command echo "\ue0b0 \u00b1 \ue0a0 \u27a6 \u2718 \u26a1 \u2699" displays all icons properly. Also, since most of the icons are displayed in a way or another, I assume this is not related to the font itself ?

Regards,
Kharnox

"Invisible" Icons

Hello,
I hope all is well with you. I am currently using the patched Source Code Pro Font (aka Sauce Code Pro Nerd Font) and for some reason the icons are invisible in ranger but visible when I open vim. Any advice would be appreciated.

Thanks

2020-09-19-02:42:16-screenshot
2020-09-19-02:42:40-screenshot
2020-09-19-02:44:58-screenshot
2020-09-19-02:47:03-screenshot

Automatic icons switching based on file age

I want to change icon of files and folders that are not older than 24 hours (according to modification time).

By modifying devicons_linemode.py as shown below, the icons of recently modified files/folders are changed, as expected.

--- devicons_linemode.py	2018-12-26 01:17:40.000000000 +0200
+++ devicons_linemode.py	2019-03-20 22:26:56.883400000 +0200
@@ -1,4 +1,5 @@
 import ranger.api
+import time
 from ranger.core.linemode import LinemodeBase
 from plugins.devicons import *
 
@@ -16,4 +17,5 @@
   name = "filename"
 
   def filetitle(self, file, metadata):
+    if os.path.exists(file.path) and ((time.time() - file.stat.st_mtime) < 86400): return '! ' + devicon(file) + ' ' + file.relative_path
     return devicon(file) + ' ' + file.relative_path

The problem:
However, after 86400 seconds (or less, for debugging), the icons are not automatically updated.
:reload_cwd command updates icons for files only. The icons of folders does not change. Only :reset command restores the correct icons.

Is there a way to force an update (without :reset) of folder icons?
Is it possible to clear the cache of icons and redraw them?

Icons not displaying at all

I use urxvt for terminal and Sauce Code Nerd Font from nerd fonts but the icons are not displayed in ranger at all. I tried it on termite still doesn't work
2020-01-27_00-05

Invalid linemode: devicons

Hello, I have encountered the following error. It seems ranger_devicons doesn't work. Please help me. Thanks!
Screenshot from 2020-06-28 21-17-15
My rc.conf

set preview_images
set preview_images_method kitty
default_linemode devicons

Not working properly, there are ectangles next to icons

There are for some reason rectangles next to the icons, which cause the the icons to look a little messy. My guess is that it has to do something with the fonts that I am using.
Screenshot_19-06-03_at_18-58-15

Terminal: kitty
Font used in terminal: Hack

Doesn't work on Mojave

This works fine on my Ubuntu machine but on my Mac OSX (Mojave) all I see is -. Fonts are installed.

╰─$ ls -la ~/Library/Fonts
total 13848
drwx------+    7 k  staff      224 Feb 11 10:23 .
drwx------@   66 k  staff     2112 Feb  7 11:23 ..
-rw-rw-r--@    1 k  staff  1795448 Apr  1  2018 Hack Bold Italic Nerd Font Complete.ttf
-rw-rw-r--@    1 k  staff  1792624 Apr  1  2018 Hack Bold Nerd Font Complete.ttf
-rw-rw-r--@    1 k  staff  1751312 Apr  1  2018 Hack Italic Nerd Font Complete.ttf
-rw-rw-r--@    1 k  staff  1744560 Apr  1  2018 Hack Regular Nerd Font Complete.ttf
drwxr-xr-x  1200 k  staff    38400 Feb 11 09:30 NerdFonts

Icons missing

I have an issue similar to these: #9 and #30.
Some icons are displayed, but most of them are not (blocks are displayed instead of icons). I've installed Nerd fonts and configure SauceCodePro Nerd Font as my default one in my .Xresources file:
URxvt*font: xft:SauceCodePro\ Nerd\ Font:size=13:antialias=true

Also I got this in my terminal: Invalid linemode: devicons; should be metatitle/sizemtime/filename/mtime/fileinfo/permissions

How to fix this?

Thanks in advance!

Invalid linemode: devicons

No icons shown and with the latest download I get the following error as soon as I exit ranger.

Invalid linemode: devicons; should be filename/metatitle/permissions/fileinfo/mtime/sizemtime

OS: fedora 32
Terminal: kitty

rc.conf

set show_hidden true
default_linemode devicons

Bad icon for Download

Hi,

I have a bad icon for the Download directory (see pic).
I seems this icon is not present in my fonts (tested with DejaVu Sans Mono and SauceCodePro Nerd Font from NerdFont).

And btw why the Makefile installs devicons.py in the Ranger folder and devicons_linemode.py in the plugins folder ?

Cheers.
2017-10-03-144101_1366x768_scrot

[Kitty] Ranger does not display devicons

Runtime Environment

  • Operating system and version: macOS 14.01
  • Terminal emulator and version: kitty 0.19.2
  • Ranger version/commit: ranger version: ranger 1.9.3
  • Python version: 2.7.16 (default, Oct 30 2020, 02:15:49) [GCC Apple LLVM 12.0.0 (clang-1200.0.30.4) [+internal-os, ptrauth-isa=sign+stri
  • Locale: None.None
  • shell: zsh 5.8 (x86_64-apple-darwin20.0)

Current Behavior

When using kitty the devicons (https://github.com/alexanderjeurissen/ranger_devicons) the icons are sometimes shown and sometimes not. Instead there are those characters:
problem

Expected Behavior

Display devicons to the left of files and directories.

Context

If I start kitty from another terminal (not kitty), the devicons are shown as expected.

Steps to reproduce

  1. Install alexanderjeurissen/ranger_devicons
  2. Open kitty
  3. type ranger

This is a mirror of ranger/ranger#2169. I post it here in case you can help me debug the ranger devicon display engine.

Random characters and text shifting while moving around

Describe the bug
Upon running ranger, lines and icons are all rendered correctly except the first line. Upon moving around some persistence artifacts start showing and filenames can be seen to shift by one character back and forth.
It seems as if ranger is wrapping the string of each column one character early (In first column division line is shifted one space, second column two spaces and so on)

To Reproduce
Steps to reproduce the behavior:
Open ranger and start moving around

Expected behavior
While moving around previous highlighted line should go back to normal instead of remaining with persistence artifacts, and selected line shouldn't be shifted by one character.

Screenshots
Upon first starting ranger. You can see the first line seems shifted. In the first column you can also see the it looks like ranger is wrapping the last space character of the home directory
issue1

After moving up and down in the second column. Persistence artifacts can be observed
issue2

Environment (please complete the following information):

  • OS + version: Arch Linux (5.11.15-arch1-2)
  • shell: Bash
  • shell version: 5.1.4

Ranger devicons (please complete the following information):

  • version / commit HEAD
  • output of tree ~/.config/ranger [can be installed on most OS using default package manager e.g. apt-get install tree]
    β”œβ”€β”€ commands_full.py
    β”œβ”€β”€ commands.py
    β”œβ”€β”€ init.py
    β”œβ”€β”€ plugins
    β”‚Β Β  β”œβ”€β”€ devicons.py
    β”‚Β Β  β”œβ”€β”€ init.py
    β”‚Β Β  └── ranger_devicons
    β”‚Β Β  β”œβ”€β”€ CONTRIBUTING.MD
    β”‚Β Β  β”œβ”€β”€ LICENSE
    β”‚Β Β  β”œβ”€β”€ LICENSE_NERDFONT
    β”‚Β Β  β”œβ”€β”€ README.md
    β”‚Β Β  └── screenshot.png
    β”œβ”€β”€ rc.conf
    β”œβ”€β”€ rifle.conf
    └── scope.sh

Additional context
Removing devicon(file) from the return devicon(file) + ' ' + file.relative_path line in init.py removes devicons as well as the rendering issue/artifacts.

Wrong icons for Dropbox and `.sh` files

Since one of the last changes (81cb58b) I have noticed that the Dropbox folder and the *.sh files have wrong icons. Range shows a gear for the Dropbox folder whereas *.sh shows a # sign instead of the terminal character.

Is this an intentional change?

Thanks

Document icon is randomly switching with char "Γ’"

Hi,

It's a really weird problem and it's the only icon it happens to yet.

It usually starts normally.

2018-03-25-223300_921x519_scrot

Then it's easily triggerproof way is with set viewmode multipane and increasing the font size back and forth.

This is before the font resize
2018-03-25-223316_921x519_scrot

And this is after.
2018-03-25-223326_921x519_scrot

My question is, why is that? And what could possibly interfere, using suckless terminal?

Here is my fc-list
fclist.txt

In terminal alacritty, it's not switching the character but it's always the character Γ’.

Warning being shown when closing ranger

When using devicons as the default line mode the following warning is shown when closing ranger:

Invalid linemode: devicons; should be metatitle/sizemtime/filename/mtime/fileinfo/permissions

Which is weird because the line mode can manually be activated once ranger has been invoked, and the line mode is active on activation of ranger without delay. I'll create an issue in the ranger repository inquiring about possible causes of this behaviour.

For now rest be assured that this does not impact the functionality of this plugin in any way.

Install script appends `default line mode entry` even if it already exists

When running

$ make install

The install script appends an entry to the ranger configuration to use the ranger_devicons mode by default. However the install script currently isn't aware if this line is already present. This results in multiple entries when updating for example.

There are several possible solutions to this:

  • Instead of copying the files using install we could symlink them to the correct locations, resulting in the end user only having to pull the latest changes and the plugin is up to date.
  • Introduce a update command in the makefile that gets the latest git changes and replaces the old plugin files with the new ones.

Icons appear too small on kitty terminal on archlinux.

I got the font from Here

$ ranger --version
ranger version: ranger-master 1.9.1
Python version: 3.7.0 (default, Jul 15 2018, 10:44:58) [GCC 8.1.1 20180531]
Locale: en_US.UTF-8
$ kitty --version
kitty 0.11.3 created by Kovid Goyal

Here is the font part in my kitty config file:

font_family Sause Code Pro Nerd Font Complete
bold_font auto
italic_font auto
bold_italic_font auto

Please note that I'm seeing the correct Icons according to your screenshot but the icons are just too small for example in your screenshot the directory icon is larger than f character but for me it's slightly smaller than the a character.

M-n~WM-? instead of icons

I use last version of ranger installed with
pip package ranger-fm

I got
M-nWM-? string instead of dir icons
M-n
XU
M-n
X~R
strings instead of file icons

locale is ok, nerd font also works in gnome terminal
python 3.7, ubuntu 18.04

Am I missed something?

regards

Experimental instalation (loading plugins from plugin folder) not working

Hi there! Thanks a lot for your efforts on this! Appreciate it!

I have set it up using the recent support for plugins according to the current instructions. The only difference was that instead of cloning the git repo, I added it as submodule:

git submodule add https://github.com/alexanderjeurissen/ranger_devicons ranger/plugins/ranger_devicons

ls ~/.config/ranger/plugins/ranger_devicons
LICENSE          LICENSE_NERDFONT Makefile         README.md        __init__.py      devicons.py      screenshot.png

Then after this, i have started ranger but no icons. Then I started a new shell session and tried again, also no luck. Then I entered the plugin above and run make install then it worked. I then generated new files on ranger/plugins:

ls ~/.config/ranger/plugins/
__init__.py           __init__.pyo          devicons.py           devicons.pyo          devicons_linemode.py  devicons_linemode.pyo ranger_devicons

So now I have to either add these files above to .gitignore or keep committing them everytime.

Wasn't it supposed to work without the manual make install step? Am I missing something?

Thank you!

Error after uninstall

I tryed your tool then make uninstall, now when I quit ranger I have this message:
Invalid linemode: devicons; should be metatitle/permissions/fileinfo/filename

Thks

only Music dir not work

04-05_08:15:55

~ Β» uname -a                                                                                                                                                         zdm@ar
Linux ar 5.5.13-arch2-1 #1 SMP PREEMPT Mon, 30 Mar 2020 20:42:41 +0000 x86_64 GNU/Linux

pacman -S nerd-fonts-complete
yay -S nerd-fonts-source-code-pro

git clone https://github.com/alexanderjeurissen/ranger_devicons ~/.config/ranger/plugins/ranger_devicons

make install

why Music devicons is ".", Is there any solution ?

Icons missing despite installing nerd fonts mentioned in the readme

Previously I had the complete nerd fonts package installed, but that took about 9GB of cache, so I stopped using it.

Following the readme, I installed Source Code Pro patched NERDfont (nerd-fonts-source-code-pro from AUR), and I also have ttf-nerd-fonts-symbols. However, some icons are still missing:

1616086621

Icons don't show with patched fonts

I can't see any icons on ranger. Unlike the other problems here, I don't see any icons.

I use FuraCode Nerd Font Mono, and termite. (Using archlinux packages from AUR) I have tried switching to SauceCodePro Nerd Font Mono, and I have tried multiple terminals (urxvt, kitty, st) and the icons are blank all throughout.
2018-08-09_15 27 06

Invalid linemode: devicons - Icons not showing

Describe the bug

  • Installed ranger from package manager
  • Cloned ranger_devicons into ~/.config/ranger/plugins
  • Moved devicons.py to ~/.config/ranger and __init__.py to ~./config.ranger/plugin because I saw this issue: #64
  • Added default_linemode devicons to ~/.config/ranger/rc.conf
  • I have Hack Nerd fonts installed and can see the icons in devicons.py

Even tho it seems all is right, when I launch ranger no icons appear and it give the follow error:

Invalid linemode: devicons; should be filename/metatitle/permissions/fileinfo/mtime/sizemtime/humanreadablemtime/sizehumanreadablemtime

When I do ranger --debug:

ranger version: ranger 1.9.3
Python version: 3.9.7 (default, Aug 31 2021, 13:28:12) [GCC 11.1.0]
Locale: pt_PT.UTF-8

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/ranger/core/main.py", line 119, in main
    load_settings(fm, args.clean)
  File "/usr/lib/python3.9/site-packages/ranger/core/main.py", line 471, in load_settings
    fm.source(custom_conf)
  File "/usr/lib/python3.9/site-packages/ranger/core/actions.py", line 408, in source
    self.execute_console(line)
  File "/usr/lib/python3.9/site-packages/ranger/core/actions.py", line 271, in execute_console
    cmd.execute()
  File "/usr/lib/python3.9/site-packages/ranger/config/commands.py", line 553, in execute
    self.fm.notify(
  File "/usr/lib/python3.9/site-packages/ranger/core/actions.py", line 177, in notify
    raise Exception(str(obj))
Exception: Invalid linemode: devicons; should be filename/metatitle/permissions/fileinfo/mtime/sizemtime/humanreadablemtime/sizehumanreadablemtime

ranger crashed. Please report this traceback at:
https://github.com/ranger/ranger/issues

Environment

  • OS: ArchLinux (5.14.3-arch1-1)
  • shell: bash
  • shell version: 5.1.8
  • Terminal emulator: Alacritty

Ranger devicons

  • version / commit: HEAD
  • output of tree ~/.config/ranger:
ranger
β”œβ”€β”€ commands_full.py
β”œβ”€β”€ commands.py
β”œβ”€β”€ devicons.py
β”œβ”€β”€ plugins
β”‚Β Β  β”œβ”€β”€ __init__.py
β”‚Β Β  β”œβ”€β”€ __init__.py_
β”‚Β Β  β”œβ”€β”€ __pycache__
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ devicons.cpython-39.opt-1.pyc
β”‚Β Β  β”‚Β Β  └── __init__.cpython-39.opt-1.pyc
β”‚Β Β  └── ranger_devicons
β”‚Β Β      β”œβ”€β”€ CONTRIBUTING.MD
β”‚Β Β      β”œβ”€β”€ LICENSE
β”‚Β Β      β”œβ”€β”€ LICENSE_NERDFONT
β”‚Β Β      β”œβ”€β”€ __pycache__
β”‚Β Β      β”‚Β Β  β”œβ”€β”€ devicons.cpython-39.opt-1.pyc
β”‚Β Β      β”‚Β Β  └── __init__.cpython-39.opt-1.pyc
β”‚Β Β      β”œβ”€β”€ README.md
β”‚Β Β      └── screenshot.png
β”œβ”€β”€ rc.conf
β”œβ”€β”€ rifle.conf
└── scope.sh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.