When I open a directory using dired and there is already the same directory opened in dired, a second one is opened with
<2>. How can I inhibit this creation of the duplicate window and switch to the existing one?
I know that I can set dired to use only one window, but I just do not want to have two dired windows for the same directory.
Dired naturally does this when I open the same path twice. But I access the same directory via different paths (via symlinked paths), I seem to have the duplicates. How can I reuse the same window when I access the same directory through different paths because of symbolic links?
dired-find-file, which opens another buffer.
dired-find-alternate-filereuses the current buffer, is that what you want?
When I open a directory, what method are you using?