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

Feature request: setting to wrap absolute path Copy Path command with quotes #229280

Open
henrikvilhelmberglund opened this issue Sep 21, 2024 · 1 comment · May be fixed by #231178
Open

Feature request: setting to wrap absolute path Copy Path command with quotes #229280

henrikvilhelmberglund opened this issue Sep 21, 2024 · 1 comment · May be fixed by #231178
Assignees
Labels
feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities terminal-input Relating to typing in the terminal not doing the right thing, IMEs not working, etc.
Milestone

Comments

@henrikvilhelmberglund
Copy link

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 do cd and paste the folder. I end up with this:

$ cd C:\Github\forks\kit\packages\kit\test\apps\basics
bash: cd: C:Githubforkskitpackageskittestappsbasics: No such file or directory

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.

@lramos15 lramos15 assigned benibenj and unassigned lramos15 Sep 23, 2024
@benibenj benibenj assigned Tyriar and unassigned benibenj Sep 23, 2024
@Tyriar
Copy link
Member

Tyriar commented Sep 26, 2024

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.

@Tyriar Tyriar added help wanted Issues identified as good community contribution opportunities feature-request Request for new features or functionality terminal-input Relating to typing in the terminal not doing the right thing, IMEs not working, etc. labels Sep 26, 2024
@Tyriar Tyriar added this to the Backlog milestone Sep 26, 2024
@Parasaran-Python Parasaran-Python linked a pull request Oct 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities terminal-input Relating to typing in the terminal not doing the right thing, IMEs not working, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants