zed icon indicating copy to clipboard operation
zed copied to clipboard

Use current's file directory as default for the new file in Save As

Open mgiachetti opened this issue 3 years ago • 7 comments

Description

When trying to duplicate a file is common that the new file goes in the same directory or very close to the current one. As a fast way to duplicate it would be easier if when you press save as, the File name picker starts at the current's file directory instead of the root project directory. In big projects sometimes it's hard/slow to find the current directory using the tree.

mgiachetti avatar May 23 '23 11:05 mgiachetti

+1 much harder than it should be right now. Currently have to Right click + Find in Finder to duplicate a file.

markbrown4 avatar May 09 '24 00:05 markbrown4

Note, you can duplicate files from the Project Panel (no Save As or Finder required).

Just right click on a filename, select "Duplicate" and a new filename copy.ext will appear.

image

notpeter avatar Jun 23 '24 00:06 notpeter

+1

In something like VS Code, when you have a file src/path/hello/file.txt open, create a new file, and then press save, the Save As menu has the directory set to src/path/hello/ by default. Would definitely be a huge +

sbenemerito avatar Aug 25 '24 14:08 sbenemerito

Zed 0.201.8 
7b94cebf099ec4b7bf765026a84dec898be9a874

I never experienced this issue on macOS. Save As... is my first choice to create a duplicate of the file. Save Ass... dialog's current directory is always the directory that contains the original file.

IvanKostyuk avatar Aug 31 '25 18:08 IvanKostyuk

Hi there! 👋 We're working to clean up our issue tracker by closing older bugs that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Zed, please let us know by commenting on this issue, and it will be kept open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, it will close automatically in 14 days. Thanks for your help!

github-actions[bot] avatar Nov 19 '25 07:11 github-actions[bot]

i will take a look at this tonight

bobbymannino avatar Feb 19 '26 08:02 bobbymannino

Hello,

We’re closing this issue as part of a cleanup of older feature requests.

Going forward, new feature requests start as GitHub Discussions and only become Issues once the direction is agreed on. This helps ensure that Issues represent scoped, ready-to-build work and makes it easier for contributors to find work that’s ready to pick up. You can read more in our Feature Request Guidelines.

As part of this transition, we’re closing feature request Issues that are older than 6 months and have fewer than 10 upvotes.

If this feature hasn’t been implemented and is still important to you, we encourage you to open a new feature request Discussion here. That’s where we track and evaluate new requests.

Thanks for helping shape the future of Zed.

JosephTLyons avatar Feb 20 '26 21:02 JosephTLyons