I often have many dired
buffers open, including some for folders that have identical names. Occasionally, this causes me to switch to the wrong one, so I am looking for a way to fix this.
Currently, if I have multiple identically-named folders open in dired
, then my buffer list looks something like this:
foo
foo<2>
bar
foo<3>
bar<2>
I would like to include the full path (or some portion of it) in the buffer name so I can see which folder I am actually switching to. I would prefer to do it like this:
foo</full/path/to/foo>
foo</another/path>
and so on. I could also settle for e.g.:
/full/path/to/foo
/another/path/foo
but I would prefer the former, because it will usually be easier to find the buffer I want by folder name first, and full path second. How can this be done?