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]: Command for reloading current environment #23
Comments
@jul1u5 I think It's a pretty useful feature. Sad, but I have a lack of time near time. If you can help with the contribution it will be awesome 🙂 |
I would be happy to contribute :) Last time you mentioned that you are rewriting the codebase in PureScript, I see that the PS branch has not been merged yet. Should I just make changes to the TypeScript version? |
Yes, you can contribute to the typescript version as well 🙂 |
@jul1u5 thinking about this issue. Reload environment after selecting a new one when buttons "Reload" appears doing the same that build-it "Reload window" command. Sad but we aren't able to do environment changes without reloading window. Is this feature still useful for you? |
Yeah, I was thinking of implementing this feature, just didn't have much time recently. I think this is useful as it provides a quicker shortcut for rebuilding the environment. Instead of running Perhaps the command should be better named Also, not really related to this issue, but I was wondering if it would be feasible to watch nix config file for changes, rebuild the environment and then prompt the user to reload the window. But I guess that's very similar to what lorri does, so maybe we could integrate it somehow? What do you think? |
I got your approach and I like that way 👍 |
@jul1u5 added command "Hit environment" in v1.0.4 |
Is your feature request related to a problem? Please describe.
When I try to set up my nix environment for some project, I often need to reload the environment. The current workflow seems too cumbersome to me.
Right now, the fastest way to reload the environment is the following:
Ctrl+Shift+P
(Go to the command palette)Nix-Env: Select environment
shell.nix
(or some other file)Reload
Describe the solution you'd like
I would like to have a command which reloads the current environment. I guess it would be enough to wrap the first three steps in this command. After the environment prepares, the user could then press the Reload button or use
Developer: Reload Window
command.Additional context
It would also be great to have a keyboard shortcut for this command.
The text was updated successfully, but these errors were encountered: