Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not create files on empty result #381

Closed
AndreasNasman opened this issue Apr 15, 2024 · 2 comments 路 Fixed by #384
Closed

Do not create files on empty result #381

AndreasNasman opened this issue Apr 15, 2024 · 2 comments 路 Fixed by #384

Comments

@AndreasNasman
Copy link

Hi! 馃憢

Is it possible to suppress the behavior of creating files when pressing Enter if no results are found? I sometimes mistype a filename, which results in no matches, and if I press Enter without noticing, a file is created that I don't want. Can I disable this behavior and only create files using explicit create actions?

Example: I want to open the temp.lua file but accidentally type temm and press Enter, creating a temm file I don't want.
image
image
image
image

@jamestrew
Copy link
Collaborator

Yeah I can see this as being annoying.
I'll add an option to disable this feature. I'll try to do this in the over the next couple of days.

@jamestrew
Copy link
Collaborator

Added the option create_from_prompt. It defaults to true to preserve existing behavior but you can set it to false in your config to disable creating files/folders from the prompt when there are no results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants