14

I always end up opening an eshell and executing find-file new-file-name, because helm always supplies me with candidates and a million options that don't look like the basic feature that I want: forcing the file to be called what I typed. For example, I want to great an org document called mto.org in a directory with another org file in it.

Helm completes rather than letting me make a new file :(

How can I force helm to create the file with the name I typed, so I can save 10 seconds by avoiding opening up eshell and adding a small, but (hopefully easily) avoidable disruption of my concentration?

Community
  • 1
  • 1
wdkrnls
  • 4,548
  • 7
  • 36
  • 64
  • If you have the external application `touch`, how about evaluating?: `(start-process "touch-file" nil "touch" "moto.org")` If you like that, then you can make it more elaborate to check the existence of a file with that name and if it exists then creating that name plus 1, 2, 3, etc. -- e.g., moto1.org, moto2.org, moto3.org. – lawlist Sep 08 '14 at 18:57
  • is your helm package up-to-date? I think there was bug around this a while back. – Jack Sep 08 '14 at 20:54

1 Answers1

29

You can press C-p and select the line

[?] mto.org

and then just press RET. It will (ask you to) create the file with the name you typed.

ale
  • 986
  • 1
  • 9
  • 14