Speedbar has a nice feature wherein the directory heading at the top of a files/directory buffer contains various text properties for the user to jump to any of the parent directories by placing the cursor on the corresponding name and pressing the enter key. I took it one step further and placed a text property at point-min
to jump to root.
Q: Is there an existing modification for dired-mode
that accomplishes the same thing? If not, then this thread can be used to create such a new feature.
GOAL -- dired-mode
: For example, the heading directory in dired-mode
is: /Users/HOME/data/emacs/lisp
Placing the cursor at
point-min
and pressing enter will open adired
buffer at/
Placing the cursor anywhere on the word
Users
and pressing enter will open adired
buffer at/Users
Placing the cursor anywhere on the word
HOME
and pressing enter will open adired
buffer at/Users/HOME
.Placing the cursor anywhere on the word
data
and pressing enter will open adired
buffer at/Users/HOME/data
.Placing the cursor anywhere on the word
emacs
and pressing enter will open adired
buffer at/Users/HOME/data/emacs
.