Skip to content

Duplicating a file does not focus on file name #40867

@maxnatamo

Description

@maxnatamo

Summary

When copy-pasting a file into the same directory, the rename prompt is rendered as if it's focus, when it isn't.

Description

When copy-pasting a file within the same directory (effectively duplicating it), the new file has the name of *file_name* copy. Zed also allows the user to rename the file immediately, highlighting the copy part for easy overwrites.

However, when attempting to do this in the current version of Zed, the text field for renaming is not in focus. So, before you can write anything in the file name, you have to click to select the field.

Steps to reproduce:

  1. Open a workspace in any folder
  2. Make a new file with some name
  3. Copy the file and paste it into the same workspace folder
  4. Attempt to replace the copy part of the file name, without clicking.

Expected Behavior:
Expected the file rename field to be in focus right after pasting the file.

Actual Behavior:
The text field looks as if it's in focus, but it functions as if it isn't.

Zed Version and System Specs

Zed: v0.208.6 (Zed)
OS: macOS 26.0
Memory: 16 GiB
Architecture: aarch64

Metadata

Metadata

Assignees

Labels

area:project panelFeedback for files tree viewmeta:regressionthis used to work and now doesn'tstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduce

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions