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: Support Environment Variable Expansion On PowerToy Run #3251

Closed
rkttu opened this issue May 20, 2020 · 5 comments
Closed

Feature Request: Support Environment Variable Expansion On PowerToy Run #3251

rkttu opened this issue May 20, 2020 · 5 comments
Assignees
Labels
Idea-Enhancement New feature or request on an existing product Product-PowerToys Run Improved app launch PT Run (Win+R) Window Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.

Comments

@rkttu
Copy link

rkttu commented May 20, 2020

Summary of the new feature/enhancement

Traditional Windows Run dialog (also search feature in the start menu) supports auto-completion with the environment variables. (For example, traditional run dialog understands the meaning of %windir%.) I think this is essential to replace those two features.

Proposed technical implementation details (optional)

Case 1. For example, when I type "%windir%" in the text box, auto-suggestion automatically populates the open folder action.

Case 2. When I type "%comspec%" in the text box, auto-suggestion understands that this environment variable points out to a command-line interpreter, and user can open the app.

Case 3. When I type "%comspec% /k echo Hello, World!", auto-suggestion understands that this environment variable points out to command-line interpreter, and the user can open the app. Plus, the following parameter should propagate to the app and the console displays the message "Hello, World!" on the screen.

Case 4. This is not an environment variable case, but it requires for the Windows Terminal scenario. When I type the "wt" alias in the traditional interfaces, it launches successfully the new Windows Terminal app. Also, "wt %comspec%" will run the default command-line interpreter inside the Windows Terminal.

@jyuwono
Copy link
Contributor

jyuwono commented May 20, 2020

@rkttu you can currently do all of the scenarios you mentioned above in PowerToys Run by adding > at the beginning of your search query. For example, > %comspec% or > %windir%

@jyuwono jyuwono added the Product-PowerToys Run Improved app launch PT Run (Win+R) Window label May 20, 2020
@antonwnk
Copy link

@jyuwono Any chance for supporting PowerShell syntax variables?

@jyuwono jyuwono added the Idea-Enhancement New feature or request on an existing product label Jun 3, 2020
@jyuwono jyuwono added this to the Suggested Enhancements milestone Jun 3, 2020
@jyuwono
Copy link
Contributor

jyuwono commented Jun 3, 2020

@antonwnk please create a separate feature suggestion so we can keep track of it. It will also be helpful if you can add some more details in the issue (things like, what's the scenario you're trying to do, maybe with some examples)

@saahmedm saahmedm added the Status-In progress This issue or work-item is under development label Sep 30, 2020
@P-Storm
Copy link
Contributor

P-Storm commented Oct 1, 2020

@saahmedm this is merged and thus done :).

@crutkas crutkas added Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release. and removed Status-In progress This issue or work-item is under development labels Oct 9, 2020
@crutkas
Copy link
Member

crutkas commented Oct 29, 2020

@crutkas crutkas closed this as completed Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Idea-Enhancement New feature or request on an existing product Product-PowerToys Run Improved app launch PT Run (Win+R) Window Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.
Projects
None yet
Development

No branches or pull requests

6 participants