file_finder: Add option to create new file
https://github.com/user-attachments/assets/7c8a05a1-8d59-4371-a1d6-a8cb82aa13b9
While implementing this, I noticed that currently when the search panel displays only one result, the box oscillates a bit up and down like so:
https://github.com/user-attachments/assets/dd1520e2-fa0b-4307-b27a-984e69b0a644
Not sure how to fix this at the moment, maybe that could be another PR?
Release Notes:
- Add option to create new file in project search panel.
Thanks, I've been missing this feature!
I'd love to have an action in the picker to automatically select the "create new file" option, as I imagine creating a short filename in the root of a large project would be annoying given that that entry goes at the end of the fuzzy search results.
Maybe we could bind it to ctrl+enter or shift+enter by default?
Interesting suggestion, although I would like to mention you could also just press up-arrow to immediately jump to the end!
@xyzqm Not really about this PR, how do you make the LSP work immediately after creating the new file without suffering https://github.com/zed-industries/zed/issues/24349 ?