-
Notifications
You must be signed in to change notification settings - Fork 10
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
$path / ${repo:path} custom command variable misses directory separators #2043
Comments
I will check that. However, why do you need it? The working directory is the repo path. |
I was trying to make a custom command which opens the windows terminal, like this (copied from #961):
|
Did you try to select 'Windows Terminal' in File -> Preferences -> Integration? |
Thanks for letting me know, I just wanted to play with custom commands, I'm fine with the default git bash. :) By the way the pwd works as workaround: {
"action": {
"script": "wt -d \"$PWD\"",
"showOutput": false,
"type": "sh",
"waitForExit": false
},
"name": "Open in Windows Terminal",
"target": "repository"
} |
I don't have an access to my Windows machine right now, but another workaround probably is to use |
Hi! Just wanted to say I'm having pretty much the same issue when trying to make a custom command to apply a patch file with some extra options. I'm using the Path Text Box control with Open File dialog type in order to find the patch file but the path coming back through the $1{path} variable is missing it's separators. Not a big deal as your Start Process workaround works a treat 👍 If you wonder why I wanted a custom apply patch, the built in one fails with this error:
stack overflow suggests this and it works fine The patch is being generated by Fork on my work machine (win10) then attempted to apply on my home machine (win 11) |
Hi!
The
$path
and${repo:path}
custom command variables miss directory separators.Its value is
D:workrepos_localRUConsumptionSimulator
while it is actuallyD:\work\repos\_local\RUConsumptionSimulator
and so on.Demonstration: I have the following custom command:
and its output is:
Fork version: 1.89.2.0
Windows version: 21H2
The text was updated successfully, but these errors were encountered: