rumcii / emacs-nav

Automatically exported from code.google.com/p/emacs-nav
GNU General Public License v3.0
0 stars 0 forks source link

Show directories before ordinary files #102

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Don't know about others, but I really love that plugin except that it mixes 
directories/files. An easy solution for me was to replace nav-string< function 
with this:

(defun nav-string< (s1 s2)
  "Tells whether S1 comes lexically before S2, ignoring case."
  (cond ((and (string-match "/$" s1) (not (string-match "/$" s2))) t)
        ((and (not (string-match "/$" s1)) (string-match "/$" s2)) nil)
        (t (string< (downcase s1) (downcase s2)))))

Maybe someone will find that useful, I don't know. It's a feature request, but 
I see the project is inactive, so.. whatever..

Original issue reported on code.google.com by no.smile...@gmail.com on 16 Apr 2014 at 3:53