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] Smarter change to Current Working Directory (cwd) #1123

Open
Welding-Torch opened this issue Apr 4, 2024 · 0 comments
Open

Comments

@Welding-Torch
Copy link

Is your feature request related to a problem? Please describe.
image
I'm always frustrated when CodeRunner sends a command to the terminal to change to the current working directory. Now, I use the change to CWD setting, and I like it's functionality a lot. However, I don't like that it sends a command to my terminal for it. I'm not a fan of this.

Describe the solution you'd like
I think it would be great if CodeRunner started the terminal in the cwd of the code itself. This way, we can skip sending one command manually because that command takes up space and is distracting. A smarter change to cwd - I would really like this in CodeRunner. Seamless and invisible.

Specifics
I went through the code and found the relevant code on line:

this._terminal.sendText(`cd "${cwd}"`);

So you'd probably have to change something on this line to make it work.

Makeshift solution
This is what I changed on my laptop to get a nicer output. I do not recommend actually using this in the extension's code, but this is how I'm handling it for the time being:

this._terminal.sendText(`cd "${cwd}" && cls`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant