[1.19] Pasting a file from explorer into the Terminal no longer pastes the path (regression from 1.18) #21157

Closed
opened 2026-01-31 07:34:51 +00:00 by claunia · 3 comments
Owner

Originally created by @0017031 on GitHub (Jan 31, 2024).

Windows Terminal version

1.19.240129002

Windows build number

10.0.19045.3930

Other Software

no

Steps to reproduce

copy a file from the File Explorer (a file object, not text), and then paste it into Windows Terminal

Expected Behavior

In version 1.18.240129001 of Windows Terminal, it can display the path of the pasted file.

Actual Behavior

In 1.19, and 1.20 of Windows Terminal, nothing is shown.
(copy/paste normal text is OK)

Originally created by @0017031 on GitHub (Jan 31, 2024). ### Windows Terminal version 1.19.240129002 ### Windows build number 10.0.19045.3930 ### Other Software no ### Steps to reproduce copy a file from the File Explorer (a file object, not text), and then paste it into Windows Terminal ### Expected Behavior In version 1.18.240129001 of Windows Terminal, it can display the path of the pasted file. ### Actual Behavior In 1.19, and 1.20 of Windows Terminal, nothing is shown. (copy/paste normal text is OK)
Author
Owner

@0017031 commented on GitHub (Jan 31, 2024):

This feature of paste is quite convenient. Could you please bring it back?

@0017031 commented on GitHub (Jan 31, 2024): This feature of paste is quite convenient. Could you please bring it back?
Author
Owner

@zadjii-msft commented on GitHub (Jan 31, 2024):

Huh, I never knew that worked! We'll look into it 😄

@zadjii-msft commented on GitHub (Jan 31, 2024): Huh, I never knew that worked! We'll look into it 😄
Author
Owner

@lhecker commented on GitHub (Jan 31, 2024):

We could also make it possible to paste multiple file paths in the future by unifying the code that handles drag & drop and the code that does Ctrl+V. Iterating through an HDROP with DragQueryFileW is quite simple thankfully. We should consider doing that in the future if we need to touch this code again!

@lhecker commented on GitHub (Jan 31, 2024): We could also make it possible to paste multiple file paths in the future by unifying the code that handles drag & drop and the code that does Ctrl+V. Iterating through an `HDROP` with `DragQueryFileW` is quite simple thankfully. We should consider doing that in the future if we need to touch this code again!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21157