Graphical breadcrumb for Emacs [closed]
Asked Answered
L

3

5

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.

Lunate answered 12/1, 2012 at 11:58 Comment(0)
D
6

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"))))
Dedicated answered 12/1, 2012 at 13:7 Comment(0)
I
1

Not a breadcrumb but I have the buffer name and the path file in the window bar:

(setq frame-title-format '(buffer-file-name "Emacs : %b ( %f )" "Emacs: %b"))

Idempotent answered 12/1, 2012 at 13:9 Comment(0)
K
0

It's been quite some time since this was asked, but Breadcrumb will show the file you're in, along with other context depending on where your cursor is in the file. Nice little package.

The icon to uplooad an image isn't being shown on the toolbar for me and I can't seem to drag and drop an image here, but here's an example image in the current package's github page example image of breadcrumb.

After adding the package, add (breadcrumb-mode) to your config, or run M-x breadcrumb-mode.

Keelung answered 23/10 at 6:14 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.