Skip to content

Commit 2092e0d

Browse files
authored
Update the changelog and readme for v0.1.0 release (#11)
1 parent 212a0c9 commit 2092e0d

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Changelog
2+
3+
## [0.1.0] - 2022-04-06
4+
5+
Initial release of the `CompletionPredictor` module:
6+
1. Provides prediction results based on tab completion of the user's input using a separate Runspace.
7+
1. Enable syncing some states between the PowerShell console default Runspace and the separate Runspace, including the current working directory, variables, and loaded modules.
8+
9+
Known limitations:
10+
1. Prediction on command names is currently disabled because tab completion on command names usually exceeds the timeout limit set by PSReadLine for the predictive intellisense feature, which is 20ms. Different approaches will need to be explored for this, such as
11+
- building an index for available commands like the module analysis cache, or
12+
- reusing tab completion results in certain cases, so further user input will be used to filter the existing tab completion results instead of always triggering new tab completion requests.
13+
1. Prediction on command arguments is currently disabled due to the same reason.
14+
- the default argument completion action is to enumerate file system items, which is slow in our current implementation. But this can be improved by special case the file system provider, so as to call .NET APIs directly when operating in the `FileSystemProvider`.
15+
- some custom argument completers are slow, especially those for native commands as they usually have to start an external process. This can potentially be improved by building index for common native commands.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ Run `.\build.ps1` from PowerShell to build the project. The module will be publi
1212

1313
> NOTE: Make sure you use PowerShell 7.2 with PSReadLine 2.2.2.
1414
15-
1. Import the module by `Import-Module .\bin\CompletionPredictor`.
16-
2. Enable prediction from the plugin source for PSReadLine: `Set-PSReadLineOption -PredictionSource Plugin`.
17-
3. Switch between the `Inline` and `List` prediction views, by pressing <kbd>F2</kbd>.
15+
1. Install the module by `Install-Module -Name CompletionPredictor -Repository PSGallery`
16+
1. Enable prediction from the plugin source for PSReadLine: `Set-PSReadLineOption -PredictionSource HistoryAndPlugin`
17+
1. Switch between the `Inline` and `List` prediction views, by pressing <kbd>F2</kbd>

0 commit comments

Comments
 (0)