Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File copy improvements #5119

Closed
2 tasks done
JosephTLyons opened this issue Nov 18, 2022 · 2 comments · Fixed by #12348
Closed
2 tasks done

File copy improvements #5119

JosephTLyons opened this issue Nov 18, 2022 · 2 comments · Fixed by #12348
Labels
enhancement [core label] keymap / key binding Feedback for keyboard shortcuts, key mapping, etc project panel Feedback for files tree view

Comments

@JosephTLyons
Copy link
Collaborator

JosephTLyons commented Nov 18, 2022

Check for existing issues

  • Completed

Is your feature request related to a problem?

Describe the solution you'd like

  • Holding down opt when dragging and dropping a file copies it, rather than cuts it
  • When copying a file, automatically put the user in file name edit mode
    • Maybe still pre-populate the field with text in the same way as it works now, but drop the cursor in at the end of the text
  • Add duplicate action in project panel context menu

If applicable, add mockups / screenshots to help present your vision of the feature

No response

@JosephTLyons JosephTLyons added enhancement [core label] project panel Feedback for files tree view keymap / key binding Feedback for keyboard shortcuts, key mapping, etc labels Nov 18, 2022
@kwando
Copy link

kwando commented Oct 4, 2023

Yes! A "duplicate file" would be nice in the context / "right click menu" in the project panel. Would also be nice to have the same actions available when right-clicking the tab of the file as well.

@gldtn
Copy link

gldtn commented Nov 6, 2023

Guessing duplicate is not available yet? I don't see it when I right click a file. For now I just do the old copy/paste! Also a little off the topic, but yet related.. double clicking to rename should be an expected action. So if I copy/paste and double click a file I should be able to rename that file.

@JosephTLyons JosephTLyons transferred this issue from zed-industries/community Jan 24, 2024
osiewicz added a commit that referenced this issue May 29, 2024
Partially fixes #5119 
TODO:
- [ ] Change cursor style to Copy when dragging an entry with opt
pressed.

Release Notes:

- Drag-and-dropping a project panel entry with opt modifier pressed now
copies the entry instead of moving it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement [core label] keymap / key binding Feedback for keyboard shortcuts, key mapping, etc project panel Feedback for files tree view
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants