-
-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble with ivy read and initial-input #336
Comments
I should mention that I tried to use the initial-input argument of |
I have I can avoid setting it to nil when |
Sure, that would work. Not sure if this is easier or what, but I'd also be fine with an optional initial-input argument for |
Done, have a look. |
Thank you! |
Hi, I'm enjoying using ivy so far, but I've run into a problem I can't figure out. I want to use
ivy-read
to read a file from the minibuffer, and I want to start the input with an automatically generated file name without the extension, like "01234.". I thought :initial-input would do this but it's not working as I expected. Here's my code which I modified fromcounsel-find-file
rel-fname
is the auto-generated name. I'm also let bindingdefault-directory
to start in a directory that may not exist, which is the reason formake-directory
. What happens is I get a candidate that is preselected in the completions, but what I want is to be able to quickly typeel RET
and get the file name with an "el" extension. Does that make sense? Is there a variable I need to set? I can doM-i
thenel RET
but I was hoping to eliminate that step. ThanksThe text was updated successfully, but these errors were encountered: