{"id":14063487,"url":"https://github.com/JustinGrote/ScriptPredictor","last_synced_at":"2025-07-29T15:33:28.993Z","repository":{"id":127063525,"uuid":"609635577","full_name":"JustinGrote/ScriptPredictor","owner":"JustinGrote","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-04T19:19:56.000Z","size":6,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-01T12:45:21.876Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JustinGrote.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-04T19:19:52.000Z","updated_at":"2024-08-05T19:43:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"54ed61a6-8f26-4ac6-942f-e949c5496c41","html_url":"https://github.com/JustinGrote/ScriptPredictor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustinGrote%2FScriptPredictor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustinGrote%2FScriptPredictor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustinGrote%2FScriptPredictor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JustinGrote%2FScriptPredictor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JustinGrote","download_url":"https://codeload.github.com/JustinGrote/ScriptPredictor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228028450,"owners_count":17858337,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-13T07:03:21.843Z","updated_at":"2024-12-04T01:30:53.664Z","avatar_url":"https://github.com/JustinGrote.png","language":"PowerShell","readme":"# ScriptPredictor\n\nThis is an implementation of the PowerShell prediction subsystem that allows you to specify any scriptblock as a prediction plugin, similar to how Argument Completers work. Unfortunately it's not very useful at the moment due to a 20ms runtime restriction on prediction subsystems - https://github.com/PowerShell/PSReadLine/issues/3607\n\n## Quick Start\n\n```powershell\nInstall-Module ScriptPredictor\nImport-Module ScriptPredictor\nSet-PSReadlineOption -PredictionSource Plugin\nRegister-ScriptPredictor -Name 'RandomNumberAppend' {\n\t$PSItem + (Get-Random)\n}\n#Anything you type at the prompt should now predict a random number after it. This may take a few tries for the runspace to \"warm up\" and operate under the 20ms limit.\n```\n\n","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJustinGrote%2FScriptPredictor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJustinGrote%2FScriptPredictor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJustinGrote%2FScriptPredictor/lists"}