Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to pick directory (not file) in IDO mode, emacs-24

Tags:

IDO mode is awesome. It's essential to know the basic shortcuts, especially the escape hatch Ctrl-f (introduction-to-ido-mode/) which gets you out of ido-mode.

In dired, if I want to copy a file to a directory, I can't seem to use ido to pick the directory, not can I even use the current ido directory that I've navigated to. There should be some way to say "pick directory" or at least enable the ctrl-f option to use the current spot in IDO. Does anybody know how to do this? (yes, you can disable ido mode for dired, but that is not what I want to do).

like image 837
justingordon Avatar asked Aug 26 '12 20:08

justingordon


People also ask

How do I navigate folders in Emacs?

In Emacs, type M-x dired. You will be prompted for the directory to open. Type in the directory to display, or press Return to open the default directory.

What is Ido mode Emacs?

ido-mode enhances emacs switch buffer command and opening file command. It automatically show list of choices as you type (no need to press Tab first). Alt + x ido-mode. Toggle it on/off.


1 Answers

You can use C-j, which is bound to (ido-select-text) and selects the buffer currently named by the prompt, which might be a directory as well.

like image 157
Philipp Avatar answered Oct 08 '22 15:10

Philipp