This question already has an answer here:
In my current working directory ~/WD
there is a abc.txt
file. Now I want to make another abc.txt
under a sub directory ~/WD/NEW/
. As I type C-x C-f
and the directory ~/WD/NEW/abc.txt
, ido is changing the string into ~/WD/abc.txt
, which is not what I want to open. As I try to modify the string back, ido automatically "correct" my input into the wrong string again.
Is there any way to solve this issue?
If you're using
ido
to open a file and you want to "step out" ofido
in the middle of completing, you can useC-f
. For example:Ctrl+X Ctrl+F (
find-file
)T Enter (narrow options with
ido
)Ctrl+F ("step out" of
ido
mode)Another way of avoiding the completion proposed by
ido
is to validate your entry using C-j instead of RETExample, in a case where file
foobar
already exists and you want to create filefoo
C-xC-f (
find-file
)foo (ido narrows options)
C-j (
ido-select-text
)This creates file
foo
instead of acceptingido
'sfoobar
completion