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
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
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
- SnippetPredictor.nuspec
- SnippetPredictor.PSReadLine.psm1
- FSharp.Core.dll
- SnippetPredictor.psd1
- SnippetPredictor.dll
- SnippetPredictor-Help.xml
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 |