mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 11:01:54 +00:00
8cb397cf6c
Closes #19974. When a file is pasted in the project panel at a location where a file with that name already exists, the new file's name is disambiguated by appending " copy" at the end. This happens on the paste and the duplicate actions, as well as when Alt-dragging files. With this PR, this will now open the file rename editor with the disambiguator pre-selected. Open question: With this PR's current implementation, this won't always work when pasting multiple files at once. In this case, the file rename editor only opens for the last pasted file, if that file was disambiguated. If only other files were disambiguated instead, it won't open. This roughly mimics the previous paste behaviour, namely that only the last pasted file was selected. I see two options here: If multiple files were pasted and some of them were disambiguated, we could select and open the rename editor for the last file that was actually disambiguated (easy), or we could open a kind of multi-editor for all files (hard, but maybe a multi-rename editor could actually be interesting in general...). Release Notes: - Open rename file editor if pasted file was disambiguated |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
LICENSE-GPL |