punassuming / ranger.el

Bringing the goodness of ranger to dired!
699 stars 52 forks source link

Problem under Windows #156

Open fpopineau opened 7 years ago

fpopineau commented 7 years ago

Using native Windows Emacs, there is a problem at least with v25.x : the directory column does not display any content. By default dired uses its elisp internal version of ls. Unfortunately, this version lists files with only 7 fields instead of the 8 fields reported with an external ls program. If you set

(setq ls-lisp-use-insert-directory-program t)

then things are working.

Another way of fixing things is:

 ;; Fix the masks for the elisp internal implementation of ls
  (setq ranger-dired-display-mask '(t t t t t t t)
        ranger-dired-hide-mask '(nil nil nil nil nil nil t))

The proper fix would probably be to parse the lines reported by dired and compute the right number of columns.

Jonesey13 commented 7 years ago

Also confirmed as a problem on 24.5 (second column does not display any content)

punassuming commented 7 years ago

Which form of ls are you using with dired? ls-lisp or from the shell?

duianto commented 7 years ago

The first workaround seems to work, it also solved another issue where folder names with spaces in them excluded the first word:

If i only evaluate the second suggestion: ;; Fix the masks for the elisp internal implementation of ls then the files become visible in the middle column, but the folder names visibility seems strange These are invisible:

And these are visible. But the first word of (all but one of) the folder names with spaces in them, remains invisible. The missing word is written with parenthesis around it:

Only one folder with spaces in it, shows the full folder name: Sublime Text 3

System Info :computer:

punassuming commented 7 years ago

I am working to try and address this. I was originally planning on using masks to hide particular details in the full dired outut, but because ls-lisp basically only sends out a formatted string, I cannot parse instances where people have modified the default listing switches unless I take that into account as well.

punassuming commented 7 years ago

I reverted my attempt to mask the details in the recent master. Let me know if this helps this issue.

duianto commented 7 years ago

The files and folders are shown as expected now, thanks.