Sitelet https://web.archive.org/web/20201202080646/https://github.com/PowerShell/PSReadLine/issues/1817
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

Can we get a predictor based on help examples and mandatory parameters? #1817

Open
Jaykul opened this issue Sep 17, 2020 · 2 comments
Open

Can we get a predictor based on help examples and mandatory parameters? #1817

Jaykul opened this issue Sep 17, 2020 · 2 comments

Comments

@Jaykul
Copy link

@Jaykul Jaykul commented Sep 17, 2020

During the September community call, the demo showed a menu view which shows suggestions from plugins beyond the history, including a "AI" driven PowerShell Az recommender ...

There are two built-in sources of suggested command-lines that would be basically similar to what that recommender is doing, but much more universally useful. Once you can guess which command I'm typing, you can pre-populate command lines from the help examples or from the parameter set syntax blocks. I think it would be great to ship each of those as a named source, so like you showed a [History] source we could also have [Help] (or [Get-Help] or [Help -Example]) and [Syntax] (or [Get-Command -Syntax]).

These would be huge for new users and for learning new commands!

@SeeminglyScience
Copy link
Contributor

@SeeminglyScience SeeminglyScience commented Sep 17, 2020

The design of the prediction subsystem doesn't allow for state based implementations (see this PR comment thread).

I wonder if it would be possible to prebuild a static reference based on available modules. Not sure how consistent that would feel though

@daxian-dbw
Copy link
Member

@daxian-dbw daxian-dbw commented Oct 5, 2020

The prediction subsystem stays experimental and is subject to change. We will need to think about how to converge the tab completion and the prediction, to get a more consistent intellisense experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.