SnippetPredictor
0.10.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.10.0] - 2026-10-24
### Added
- Add `PredictOnlyWithIdentifier` to restrict snippet predictions to identifier input.
- Predict snippets after `;`, `|`, or leading block comments while preserving preceding input.
- Add `PredictionContexts` to snippet configuration and `Add-Snippet`. Pipeline predictions require explicit permission. Repeated contexts are invalid.
- Bundle JSON Schema for editor completion, hover help and configuration validation.
### Changed
- Rank predictions by exact, prefix, word-start, then substring matches; keep ties in existing order.
### Fixed
- Reject duplicate configuration keys using case-insensitive name comparison.
## [0.9.0] - 2026-09-27
### Added
- Keep unknown group identifiers from executing with `-AcceptChord` and notify users with a bell.
### Changed
- Sort group identifier suggestions in ordinal order.
- Treat `SNIPPET_PREDICTOR_CONFIG` values consisting of whitespace as unset.
### Fixed
- Reject null entries and missing, null, empty, or blank `Snippet` values. Treat missing or null `Tooltip` values as empty strings and include JSON paths in diagnostics.
- Surface snippet configuration file read failures as diagnostics.
- Reject null, empty, or all-whitespace values for `NextChord` and `PreviousChord`.
## [0.8.0] - 2026-09-12
### Added
- Add optional accept handling for partial and complete `:snp` and group identifiers. Use `-AcceptChord` to keep the line open.
Full CHANGELOG: https://github.com/krymtkts/SnippetPredictor/blob/main/CHANGELOG.md
FileList
- SnippetPredictor.nuspec
- SnippetPredictor.dll
- SnippetPredictor.PSReadLine.psm1
- SnippetPredictor.psd1
- schemas\snippet-predictor.schema.json
- SnippetPredictor-Help.xml
- FSharp.Core.dll
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 0.10.0 (current version) | 9 | 10/24/2026 |
| 0.9.0 | 30 | 9/27/2026 |
| 0.8.0 | 23 | 9/12/2026 |
| 0.7.0 | 45 | 8/9/2026 |
| 0.6.0 | 58 | 6/27/2026 |
| 0.5.0 | 55 | 12/30/2025 |
| 0.4.0 | 61 | 5/10/2025 |
| 0.3.0 | 17 | 4/12/2025 |
| 0.2.0 | 20 | 3/22/2025 |
| 0.1.0 | 18 | 2/23/2025 |
| 0.1.0-beta | 8 | 2/21/2025 |
| 0.1.0-alpha | 11 | 2/11/2025 |