SnippetPredictor

0.9.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.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.

## [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.

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

FileList

Version History

Version Downloads Last updated
0.9.0 (current version) 6 9/27/2026
0.8.0 22 9/12/2026
0.7.0 44 8/9/2026
0.6.0 57 6/27/2026
0.5.0 54 12/30/2025
0.4.0 60 5/10/2025
0.3.0 16 4/12/2025
0.2.0 19 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
Show more