PowerShell / PowerShell

PowerShell for every system!
https://microsoft.com/PowerShell
MIT License
43.55k stars 7.06k forks source link

Commands candidates? #21530

Closed MMMMMoris closed 3 weeks ago

MMMMMoris commented 3 weeks ago

Summary of the new feature / enhancement

I opened up a VSCode terminal like this by accident. image

I forgot what I have input, things just happened. I can now choose used commands from candidate options by arrow keys. I thought it was a new feature of pwsh, but it seems not after enquiring the Internet. After restarting my terminal, I cannot find a way to reproduce the situation, not even after looking into the commands I have input. Is this a new feature or something else, any method to reproduce? By the way, I am using OhMyPosh in my terminal and have CommandNotFound installed.

Proposed technical implementation details (optional)

No response

dwtaber commented 3 weeks ago

It's a PSReadLine feature.

Set-PSReadLineOption -PredictionViewStyle ListView

mklement0 commented 3 weeks ago

In-session, you can toggle between InlineView (the default) and ListView with F2

MMMMMoris commented 3 weeks ago

In-session, you can toggle between InlineView (the default) and ListView with F2

Many thanks!

microsoft-github-policy-service[bot] commented 3 weeks ago

This issue has been marked as answered and has not had any activity for 1 day. It has been closed for housekeeping purposes.

microsoft-github-policy-service[bot] commented 3 weeks ago

📣 Hey @MMMMMoris, how did we do? We would love to hear your feedback with the link below! 🗣️

🔗 https://aka.ms/PSRepoFeedback

Microsoft Forms