5

Is there any way to allow me to type in a new dir name that is not in the completion list generated by ivy-mode?

| improve this question | | | | |
5

Yes.

There are 2 cases. The name you want to create doesn't match anything in the completion list, or when it does.

When it doesn't, you can just type in the name and press enter.

If it does match, then pressing enter will get ivy to expand the name to the completion. Here you want to call ivy-immediate-done which is bound to C-M-j by default after you have typed the name.

| improve this answer | | | | |
1

For an alternate solution you can set ivy-use-selectable-prompt. This will make the prompt selectable like a regular candidate.

| improve this answer | | | | |
  • Thank you very much for this little piece of information that I needed! :) Doom Emacs uses this by default and I couldn't figure it out by myself... – Isti115 Apr 29 at 23:09

Not the answer you're looking for? Browse other questions tagged or ask your own question.