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

[Run] Provide history of last commands in search results #3148

Open
okieselbach opened this issue May 19, 2020 · 12 comments
Open

[Run] Provide history of last commands in search results #3148

okieselbach opened this issue May 19, 2020 · 12 comments
Labels
Idea-Enhancement New feature or request on an existing product Product-PowerToys Run Improved app launch PT Run (Win+R) Window

Comments

@okieselbach
Copy link

okieselbach commented May 19, 2020

Summary of the new feature/enhancement

Provide a history of the last x commands via arrow up and down keys. This would help to prevent typing similar commands.

For example I typed > ping x.x.x.x and after that I opened I don't know code and then I would like to execute the ping command again. It would be nice to just open the launcher (PowerToys Run) and click the down arrow to get the last command "> ping x.x.x.x" before I typed code (EDIT: I commented out this part since the > action key already works similarly to this feature request, what it's not implemented it's the general history outside of specific plugins)

Proposed technical implementation details (optional)

make the implementation configurable to have the history or not and let users define the amount of entries like 20 entries.

@jyuwono jyuwono added Product-PowerToys Run Improved app launch PT Run (Win+R) Window Idea-Enhancement New feature or request on an existing product labels May 19, 2020
@jyuwono jyuwono added this to the Suggested Enhancements milestone Jun 3, 2020
@enricogior enricogior changed the title [launcher]: provide history of last x commands via arrow up and down [Run] Provide history of last commands in search results Jan 9, 2021
@enricogior enricogior added the Resolution-Already Fixed/Doesn't Apply A change in the product has made the issue obsolete. label Jan 9, 2021
@enricogior
Copy link
Contributor

As of 0.29 this is now available.

@londondev77
Copy link

@enricogior - this doesn't show up for me (in 0.29 and 0.31.1). Is there a setting I'm missing?

@enricogior
Copy link
Contributor

enricogior commented Feb 5, 2021

@londondev77
it's supposed to work out of the box:

image

But I realize the description in the issue and the way it actually works is slightly different, in the sense that you need to start typing > to have a list of the previous commands.

@londondev77
Copy link

Yes, it would make a lot of sense if it showed the last x number of commands before any input had been made. Or if they were in a dropdown like the old Run command
image

@enricogior enricogior removed the Resolution-Already Fixed/Doesn't Apply A change in the product has made the issue obsolete. label Feb 5, 2021
@enricogior enricogior reopened this Feb 5, 2021
@enricogior
Copy link
Contributor

enricogior commented Feb 5, 2021

@londondev77
OK, I reopened the issue and clarified that the request is in general and not specific for the > command.

@dantorsmar
Copy link

dantorsmar commented Mar 19, 2021

I also miss the ability for PowerToys Run to understand what command I ran last time I searched for a command, ex. if I type Outlook in the "command box", the two highest-ranked results, one that is the Windows 10 Outlook app and another one that is the Outlook desktop software (Office 2016). Unfortunately, those two results are mixed in "rank" from time to time and I have to hover my mouse pointer above each result to understand which I wanna start by looking at the "containing folder". I.e. I would like PowerToys Run to remember what command I ran the last time I searched for Outlook in the "command box" and top-rank that command.

image

@mykhailopylyp
Copy link
Contributor

@dantorsmar

Unfortunately, those two results are mixed in "rank" from time to time and I have to hover my mouse pointer above each result to understand which I wanna start by looking at the "containing folder".

We assign scores to results and order results by score. A score of a result is also affected by the number of times the result was opened. So if you always open the same Outlook app eventually it will be the first result.

@dantorsmar
Copy link

@mykhailopylyp
OK, then I need to make sure I pick the correct one a couple of times to have it as the first result...

@andresbm05
Copy link

@mykhailopylyp

We assign scores to results and order results by score. A score of a result is also affected by the number of times the result was opened. So if you always open the same Outlook app eventually it will be the first result.

How is that meant to work? does it need to be enabled somehow? I almost everyday use this feature to open the powershell typing "power" but every time I do it the first results are Pwerpoint, PowerToys and others which I never opened. yet still are shown first.

@RYDB3RG
Copy link

RYDB3RG commented Nov 7, 2021

We assign scores to results and order results by score. A score of a result is also affected by the number of times the result was opened. So if you always open the same Outlook app eventually it will be the first result.

But previously entered entries don't show up at all?
I would expect that it stores every single value I enter and suggests it when it contains a substring-match. Not only for "> " entries, but everything.
And regarding scoring: manually entered/launched strings should have higher scores than everything that is discovered automatically (path/winsearch etc)

@jefflord
Copy link
Contributor

jefflord commented Jun 8, 2022

General/global history is still not a thing? It would be awesome if it was.

A specific example would be to see the previous things you used in the Calculator plugin, but of course also really helpful globally.

Also, after traversing to a path on the FS or Reg, it would be great to also get them back.

So, it might be nice if it worked a little like "Z" (https://www.powershellgallery.com/packages/z/1.1.13) or there could just be a "Z" like global history plugin, perhaps hidden behind "?" (since we can't really use "z" (the last character of the alphabet))

@htcfreek
Copy link
Collaborator

@crutkas
Isn't this implemented with the history plugin?

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
Projects
None yet
Development

No branches or pull requests

11 participants