rlivings39 / vscode-fzf-quick-open

vscode extension providing quick file/folder open and searching using fzf
MIT License
77 stars 17 forks source link

runFzfFile and runFzfAddWorkspaceFolder inherit previous working directory #19

Closed srfraser closed 4 years ago

srfraser commented 4 years ago

If I run one of the commands that uses the current working directory, then the terminal used for fzf is changed to that directory, but runFzfFile and runFzfAddWorkspaceFolder run in the same terminal and don't reset the directory to the current workspace, meaning that runFzfFilePwd causes runFzfFile to have the same behaviour if it's run afterwards.

Wrapping the command in a subshell, such as (cd whatever/cwd/is; cmd) will ensure that the cwd is reset after each command, which is probably cleanest.

srfraser commented 4 years ago

Huh, no, wait - this was happening, and now it's not. Please ignore me, likely user error.