Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Graphical breadcrumb for Emacs

Anyone know of any graphical breadcrumbs for Emacs? I would like to have the path to the file I am currently editing displayed on top somewhere.

like image 478
mart1n Avatar asked Jan 12 '12 11:01

mart1n


1 Answers

How about this:

(defun my-breadcrumb (path)
  "Return path in a breadcrumb format."
  (mapconcat 'identity
             (split-string path (char-to-string directory-sep-char) t)
             " > "))

(setq frame-title-format
      '(buffer-file-name
        (:eval (my-breadcrumb buffer-file-name))
        (dired-directory
         (:eval (my-breadcrumb dired-directory))
         ("%b"))))
like image 146
phils Avatar answered Sep 28 '22 11:09

phils