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.
Graphical breadcrumb for Emacs [closed]
Asked Answered
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"))))
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"))
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
.
- available via GNU Elpa with
M-x package-install RET breadcrumb RET
- Available in Straight if you use that. https://github.com/emacs-straight/breadcrumb
- package repo: https://github.com/joaotavora/breadcrumb
- Some additional details on Elpa as well - https://elpa.gnu.org/packages/breadcrumb.html
© 2022 - 2024 — McMap. All rights reserved.