Open henrikvilhelmberglund opened 1 month ago
Interesting idea, I think the best place for this to live would be some "smart paste" feature in the terminal, where if it looks like a path it would wrap it in quotes or escape the space characters if deemed necessary depending on the shell type.
I use VSCode on Windows with git bash as the terminal. A problem I have is when I want to
cd
into a folder: I right click a folder, do Copy Path, focus the terminal and docd
and paste the folder. I end up with this:The shell eats the
\
because they are not escaped and the path isn't quoted.This feature request is for a setting to optionally wrap the path with single or double quotes:
Explorer: Wrap absolute Copy Path file path with quotes
"No quotes (default)"
"Single"
"Double"
Right now Copy Path gives
C:\Github\forks\kit\packages\kit\test\apps\basics
which would still be the default.Single
would give'C:\Github\forks\kit\packages\kit\test\apps\basics'
Double
would give"C:\Github\forks\kit\packages\kit\test\apps\basics"
This feature would make it smoother to interact with absolute paths from the Copy Path command on Windows machines/shells.