Skip to content

Conversation

@zeld-a
Copy link
Contributor

@zeld-a zeld-a commented Oct 16, 2025

Closes #40234

Release Notes:

  • Added open_file_on_paste setting to configure auto opening of file on paste in the project panel.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Oct 16, 2025
@smitbarmase
Copy link
Member

Thank you!

@smitbarmase smitbarmase changed the title project_panel: Add setting to toggle automatic opening of pasted files. project_panel: Add open_file_on_paste setting to configure auto opening of file on paste Oct 16, 2025
@smitbarmase smitbarmase merged commit 5467156 into zed-industries:main Oct 16, 2025
22 checks passed
@zigpress
Copy link

Quick work, thanks!

miguelcsx added a commit to miguelcsx/zed that referenced this pull request Oct 16, 2025
…0234)

- Based on zed-industries#40234, and improvement of zed-industries#40331

Release Notes:

- Added granular settings to control when files auto-open in the project panel (project_panel.auto_open.on_create, on_paste, on_drop)

---

- Add nested �uto_open settings structure with three boolean options:
  - on_create: Auto-open newly created files (default: true)
  - on_paste: Auto-open pasted/duplicated files (default: false - fixes binary file errors)
  - on_drop: Auto-open externally dropped files (default: true)
- Implement settings checks in paste, new file, and drop operations
- Add Settings UI controls for all three auto-open options
- Add test coverage with helper function for settings configuration
- Add user documentation with examples and use cases
xipeng-jin pushed a commit to xipeng-jin/zed that referenced this pull request Oct 17, 2025
…ning of file on paste (zed-industries#40331)

Closes zed-industries#40234

Release Notes:

- Added `open_file_on_paste` setting to configure auto opening of file
on paste in the project panel.

---------

Co-authored-by: Smit Barmase <[email protected]>
P1n3appl3 pushed a commit to P1n3appl3/zed that referenced this pull request Oct 18, 2025
…ning of file on paste (zed-industries#40331)

Closes zed-industries#40234

Release Notes:

- Added `open_file_on_paste` setting to configure auto opening of file
on paste in the project panel.

---------

Co-authored-by: Smit Barmase <[email protected]>
miguelcsx added a commit to miguelcsx/zed that referenced this pull request Oct 18, 2025
…0234)

- Based on zed-industries#40234, and improvement of zed-industries#40331

Release Notes:

- Added granular settings to control when files auto-open in the project panel (project_panel.auto_open.on_create, on_paste, on_drop)

---

- Add nested �uto_open settings structure with three boolean options:
  - on_create: Auto-open newly created files (default: true)
  - on_paste: Auto-open pasted/duplicated files (default: false - fixes binary file errors)
  - on_drop: Auto-open externally dropped files (default: true)
- Implement settings checks in paste, new file, and drop operations
- Add Settings UI controls for all three auto-open options
- Add test coverage with helper function for settings configuration
- Add user documentation with examples and use cases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zed tries to open files when pasting in the tree

3 participants