SnippetPredictor

0.7.0

A command-line predictor written in F# that suggests code snippets based on the input. This module requires PowerShell 7.2 or higher and PSReadLine 2.2.2. or higher.

Minimum PowerShell version

7.2

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name SnippetPredictor

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name SnippetPredictor

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

Copyright © 2025 Takatoshi Kuriyama. All rights reserved.

Package Details

Author(s)

  • Takatoshi Kuriyama

Tags

predictor snippet productivity Windows Linux MacOS

Cmdlets

Add-Snippet Get-Snippet Remove-Snippet

Functions

Disable-SnippetPredictorKeyHandler Enable-SnippetPredictorKeyHandler New-SnippetPredictorKeyHandler

PSEditions

Core

Dependencies

This module has no dependencies.

Release Notes

## [0.7.0] - 2026-08-09

### Added

- Add `Enable-SnippetPredictorKeyHandler` to register opt-in key bindings. The default Tab and Shift+Tab bindings cycle through `:snp` completion candidates. Provide composable handlers for custom completion and prediction ListView bindings.
- Add identifier and group-scoped snippet completion to the opt-in key bindings. Complete `:snp` and group identifiers from `:` or partial input. Complete matching snippets after an exact identifier.
- Add lifecycle cleanup for the opt-in PSReadLine key bindings. Provide `Disable-SnippetPredictorKeyHandler` for explicit cleanup. Clean up registered bindings automatically on module removal.

## [0.6.0] - 2026-06-27

### Fixed

- Refine the regular expression pattern to support leading whitespace in snippet input.

## [0.5.0] - 2025-12-30

### Added

- Add a debounce mechanism for snippet refresh to optimize file change handling.

### Changed

- Update help documentation.

### Fixed

- Fix a potential group serialization error by returning an empty string instead of null.

Full CHANGELOG: https://github.com/krymtkts/SnippetPredictor/blob/main/CHANGELOG.md

FileList

Version History

Version Downloads Last updated
0.7.0 (current version) 7 8/9/2026
0.6.0 56 6/27/2026
0.5.0 52 12/30/2025
0.4.0 59 5/10/2025
0.3.0 15 4/12/2025
0.2.0 18 3/22/2025
0.1.0 17 2/23/2025
0.1.0-beta 7 2/21/2025
0.1.0-alpha 10 2/11/2025
Show more