zed icon indicating copy to clipboard operation
zed copied to clipboard

file_finder: Add option to create new file

Open xyzqm opened this issue 7 months ago • 2 comments

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.

xyzqm avatar May 28 '25 00:05 xyzqm

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?

P1n3appl3 avatar May 28 '25 16:05 P1n3appl3

Interesting suggestion, although I would like to mention you could also just press up-arrow to immediately jump to the end!

xyzqm avatar May 28 '25 16:05 xyzqm

@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 ?

failable avatar Jun 05 '25 02:06 failable