-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
newTab on current path #2315
Comments
This is one of those things that is impossible in the general case but technically possible. There's a lot of intricacies here, like:
well, powershell isn't the first process we launched. we'd ignore the path
we'd ignore If your "shell" is I'd rather not provide the feature than provide the feature with so many caveats that they'd fill a documentation page. |
Thanks, nonetheless, for the suggestion. We'll keep thinking about this. |
Hmm that's kind of odd. I would think it's just a matter of reading the process' current directory https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getcurrentdirectory and calling https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessw with the directory (then again I haven't traversed through the code base yet). The part I don't know the API for would likely be trying to determine the process itself which I think should be possible because ProcExp shows the following tree But then even the example above if I used git bash it will be in the wrong folder if you're looking at the first process under |
Description of the new feature/enhancement
When opening a new tab AND OPTIONALLY if the current program in the active shell is not the shell program, use the current path of the active shell as the default path for the
newTab
action.Proposed technical implementation details (optional)
There should be an option for this.
useCurrentPath
inglobals
which takes in a string of "never", "always", "whenNotShell"The text was updated successfully, but these errors were encountered: