[PR #10160] [MERGED] implement drag&drop path in '+' button (#10073) #27936

Open
opened 2026-01-31 09:25:15 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10160
Author: @Daniel599
Created: 5/23/2021
Status: Merged
Merged: 7/20/2021
Merged by: @undefined

Base: mainHead: drag_and_drop_new_termianl_starting_directory


📝 Commits (2)

  • c9f63e7 implement drag&drop path in '+' button (#10073) with support of shift/alt+ drop, by refactor the click lambdas into a function
  • f637f1b ran runformat.cmd

📊 Changes

6 files changed (+143 additions, -71 deletions)

View changed files

📝 src/cascadia/TerminalApp/Resources/en-US/Resources.resw (+3 -0)
📝 src/cascadia/TerminalApp/TabRowControl.cpp (+48 -0)
📝 src/cascadia/TerminalApp/TabRowControl.h (+2 -0)
📝 src/cascadia/TerminalApp/TabRowControl.xaml (+3 -0)
📝 src/cascadia/TerminalApp/TerminalPage.cpp (+83 -71)
📝 src/cascadia/TerminalApp/TerminalPage.h (+4 -0)

📄 Description

Summary of the Pull Request

This PR implements the ability to drop directories/files on the '+' button which in turn will open the tab/pane/window in the given starting path.
In order to do this, I refactored the click's lambda into a method and re-used it
Sadly I wasn't able to add note about the alt/shift feature (any ideas how to do this?)
Also most of the code is "look-a-like" from other places within the project, as I don't have much experience in windows development.

References

implements #10073

PR Checklist

  • Closes Window background is broken after resizing (#10073)
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
    ** tests were done manually both of the old feature (alt/shift+click) on the '+' and on the profiles
  • Documentation updated. If checked, please file a pull request on our docs repo and link it here: #xxx
    ** no idea what to add there, if any.
  • Schema updated.
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

tested manually.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/10160 **Author:** [@Daniel599](https://github.com/Daniel599) **Created:** 5/23/2021 **Status:** ✅ Merged **Merged:** 7/20/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `drag_and_drop_new_termianl_starting_directory` --- ### 📝 Commits (2) - [`c9f63e7`](https://github.com/microsoft/terminal/commit/c9f63e788d1b73665315487fd3f27ad62816dc2d) implement drag&drop path in '+' button (#10073) with support of shift/alt+ drop, by refactor the click lambdas into a function - [`f637f1b`](https://github.com/microsoft/terminal/commit/f637f1b85208b515e1722a5cffc4f788fca31011) ran runformat.cmd ### 📊 Changes **6 files changed** (+143 additions, -71 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/Resources/en-US/Resources.resw` (+3 -0) 📝 `src/cascadia/TerminalApp/TabRowControl.cpp` (+48 -0) 📝 `src/cascadia/TerminalApp/TabRowControl.h` (+2 -0) 📝 `src/cascadia/TerminalApp/TabRowControl.xaml` (+3 -0) 📝 `src/cascadia/TerminalApp/TerminalPage.cpp` (+83 -71) 📝 `src/cascadia/TerminalApp/TerminalPage.h` (+4 -0) </details> ### 📄 Description <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request This PR implements the ability to drop directories/files on the '+' button which in turn will open the tab/pane/window in the given starting path. In order to do this, I refactored the click's lambda into a method and re-used it Sadly I wasn't able to add note about the alt/shift feature (any ideas how to do this?) Also most of the code is "look-a-like" from other places within the project, as I don't have much experience in windows development. <!-- Other than the issue solved, is this relevant to any other issues/existing PRs? --> ## References implements #10073 ## PR Checklist * [ ] Closes #10073 * [ ] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] Tests added/passed ** tests were done manually both of the old feature (alt/shift+click) on the '+' and on the profiles * [ ] Documentation updated. If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx ** no idea what to add there, if any. * [ ] Schema updated. * [ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx ## Detailed Description of the Pull Request / Additional comments ## Validation Steps Performed tested manually. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:25:15 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#27936