redguardtoo / emacs.d

Fast and robust Emacs setup.
http://blog.binchen.org
GNU General Public License v3.0
2.42k stars 617 forks source link

Enter on directory opens a new buffer when `,xf` #705

Closed Stumble closed 10 months ago

Stumble commented 6 years ago

previously, with ido, when I press enter on a matched directory in minibuffer, minibuffer cd into that directory. now it opens a new buffer in dired. How can I have the same behavior as before?

redguardtoo commented 6 years ago

Now I use ivy instead of ido. So UI may be different.

But for your question, looks the behavior is same. You press enter if current path in filter input is directory (or maybe you have not updated from latest code?).

Stumble commented 6 years ago

Merged with redguardtoo/emacs.d/master, , xf is counsel-find-file, package-list-packages shows that all packages are update-to-date.

when I press on, it shows this selection_001

redguardtoo commented 6 years ago

It's dired, isn't it?

Stumble commented 6 years ago

yeah, it is. But how could I change it back to not use dired to open directory?

redguardtoo commented 6 years ago

There is nothing I can do, unless you go back to ido-find-file. But you need (ivy-mode -1) at first.

whatacold commented 6 years ago

But how could I change it back to not use dired to open directory?

@Stumble press / instead of ENTER

Stumble commented 6 years ago

@whatacold Thanks for suggestion, It works! I wonder is there a way to change this behavior in ivy mode?

whatacold commented 6 years ago

This should work: https://github.com/abo-abo/swiper/issues/532 , also check Do not open dired for directories when using counsel-find-file - Emacs Stack Exchange - emacs.stackexchange.com with some explanations.