Skip to content

Releases: PowerShell/PSReadLine

PSReadLine v2.0.4 Release

05 Aug 23:56
Compare
Choose a tag to compare

v2.0.4 - 8/5/2020

You can get the v2.0.4 version of the PSReadLine module from PowerShell Gallery.
This release includes the following changes:

  • Revert the update to the module HelpInfoURI, which is only applicable to the version 2.1 of PSReadLine
  • Fix the env-data script and write buffer info in case of exception (#1482)
  • Improve the bug reporting message (#1698)
  • Update build to use .NET 3.1 for compliance (#1702)
  • Release build improvements (#1714, #1726, #1731)

PSReadLine v2.0.3 Release

22 Jul 05:51
Compare
Choose a tag to compare

v2.0.3 - 7/21/2020

You can get the v2.0.3 version of the PSReadLine module from PowerShell Gallery.
This release includes the following changes:

  • Update HelpInfoURI for the PSReadLine module (#1589)
  • Teach PSReadline to not force the background color during render (#1626) (Thanks @DHowett)

PSReadLine v2.1.0-beta2 Release

06 Jun 00:55
2005773
Compare
Choose a tag to compare
Pre-release

v2.1.0-beta2 - 6/5/2020

You can get the v2.1.0-beta2 version of the PSReadLine module from PowerShell Gallery.
This release includes the following bug fixes:

  • Fix the environment data script and print buffer info in case of exception (#1482)
  • Add the parameter -PredictionSource to Set-PSReadLineOption, with the options None and History (#1496)
  • Make the predictive suggestion feature disabled by default (PredictionSource set to None).
    It can be enabled by Set-PSReadLineOption -PredictionSource History (#1496)
  • Make the functions AcceptSuggestion and AcceptNextSuggestionWord bindable (#1496)
  • Fix the ArgumentOutOfRangeException caused by trimming the command line before saving to history (#1496)
  • Refactor SelfInsert to avoid duplicate logic (#1510)
  • Relax the sensitive words we filter by changing key to apikey to reduce false positives (#1517)
  • Make edit group more stable in VI mode (#1526)
  • Make ViForwardChar able to accept suggestions (#1528)
  • Update build as we move help content to the PowerShell-Docs repository (#1537)
  • Reset all VT attributes for PromptText if it contains VT sequences (#1544)
  • Expose ViBackwardChar and ViForwardChar as bindable functions (#1547)

PSReadLine v2.0.2 Release

05 Jun 17:49
Compare
Choose a tag to compare

v2.0.2 - 6/5/2020

You can get the v2.0.2 version of the PSReadLine module from PowerShell Gallery.
This release includes the following changes:

  • Add the template parameter to the bug report link (#1441) (Thanks @anthonyvdotbe)
  • Update the release build to create the NuGet package for publish (#1480)
  • Run script in local scope to make PSReadLine works in PSES in ConstrainedLanguageMode (#1527)

PSReadLine v2.1.0-beta1 Release

07 Apr 07:07
Compare
Choose a tag to compare
Pre-release

v2.1.0-beta1 - 4/7/2020

You can get the v2.1.0-beta1 version of the PSReadLine module from PowerShell Gallery.
This release includes the prototype to support the fish-like auto-suggestion in PSReadLine.

Currently:

  • The only suggestion source is the PSReadLine history file.
    The ultimate goal is to call into a prediction API in PowerShell engine that is powered by a prediction plugin.
  • By default, the suggestion text is rendered with the dark black color \x1b[38;5;238m, which works OK with a black background.
    You can change it by running Set-PSReadLineOption -Colors @{ Prediction = '<your-choice-of-color>' }.
  • VI mode - now the suggestion is disabled when switching to the command mode, and enabled when switching to insert mode.
  • Very limited efforts have been spent on the VI/Emacs experience, so it could be pretty raw for them, and feedback is very welcome.

When using this version of PSReadLine, please add the following key binding to your profile:

Set-PSReadLineKeyHandler -Key "Ctrl+f" -Function ForwardWord
  • Pressing RightArrow at the end of current typing will accept the suggestion text
  • Pressing Ctrl+f at the end of current typing will accept a word from the suggestion text
  • Pressing Ctrl+z will get you back to where you were before accepting all or part of the suggestion

PSReadLine v2.0.1 Release

01 Apr 20:57
38b933f
Compare
Choose a tag to compare

v2.0.1 - 3/31/2020

You can get the v2.0.1 version of the PSReadLine module from PowerShell Gallery.
This release includes the following changes:

  • Correct the default foreground and background colors so the appropriate default value is set for SelectionColor (#1435)
  • Add the -Chord parameter to Get-PSReadLineKeyHandler to allow searching for specific key bindings (#1298) (Thanks @theaquamarine)
  • Update docs to reflect the new -Chord parameter to Get-PSReadLineKeyHandler (#1438)

PSReadLine v2.0.0 GA Release

11 Feb 18:45
6b5e9ff
Compare
Choose a tag to compare

v2.0.0 - 2/11/2020

You can get the v2.0.0 version of the PSReadLine module from PowerShell Gallery.
This release includes the following changes:

  • Name the ReadKey thread for debug purpose (#1313)
  • Compliance: Update the .NET Core version and PowerShell SDK package (#1320)
  • Build: Enable F5 debugging of PSReadLine in Visual Studio (#1319) (Thanks @theaquamarine)
  • Build: Simply the way to get semantic version information in build (#1324)

RC2 of PSReadLine 2.0

14 Jan 17:58
a047a07
Compare
Choose a tag to compare
RC2 of PSReadLine 2.0 Pre-release
Pre-release

v2.0.0-rc2 - 1/14/2020

You can get the v2.0.0-rc2 version of the PSReadLine module from PowerShell Gallery.
This release includes the following bug fixes:

  • Add ProjectUri in module manifest (#1245)
  • Fix docs to note the -PromptText parameter of Set-PSReadLineOption is now of the String[] type (#1244) (Thanks @heaths)
  • Update key bindings in sample and docs now that the Shift key is inferred (#1248)
  • Update HelpInfoURI of the PSReadLine module to point to latest help content (#1251)
  • Fix RepeatLastCharSearch and RepeatLastCharSearchBackwards to not flip their functionalities (#1253) (Thanks @mikebattista)
  • Fix the exception when searching history with ctrl+r or ctrl+s (#1256)
  • Preserve and clear the saved current line properly to make the history operations work as expected (#1259)
  • Update release build with compliance tasks (#1260)
  • Update README.md to put PSReadLine and PowerShellGet in backtick quotes (#1280)
  • Fix a few VI edit mode issues (#1262)
  • Fix and enhance SmartInsertQuote to work better with closing braces, keywords and variables (#1288, #1289) (Thanks @theaquamarine)
  • Allow InsertPairedBraces to wrap selected text (#1293) (Thanks @theaquamarine)

RC1 of PSReadLine 2.0

11 Dec 17:47
616b8ae
Compare
Choose a tag to compare
RC1 of PSReadLine 2.0 Pre-release
Pre-release

v2.0.0-rc1 - 12/11/2019

You can get the v2.0.0-rc1 version of the PSReadLine module from PowerShell Gallery.
This release includes the following bug fixes:

  • Fix an assertion in debug build that crashes PSReadLine (#1199) (Thanks @springcomp)
  • Fix an IndexOutOfRangeException in VI mode (#1200) (Thanks @springcomp)
  • Improve handling of color in prompts (#1180) (Thanks @lzybkr)
  • Fix an 'ArgumentOutOfRangeException' when error prompt contains CJK (#1206)
  • Add instructions for updating PowerShellGet for Windows PowerShell users (#1222) (Thanks @espoelstra)
  • Correct cursor positioning (#1221) (Thanks @msftrncs)
  • Utilize LengthInBufferCells when creating Completions Menu (#1214) (Thanks @msftrncs)
  • Ensure the desired column number is used while moving up or down in VI mode (#1122) (Thanks @springcomp)
  • Make the continuation prompt's color sequence always explicitly specified (#1238)

Beta6 of PSReadLine 2.0

11 Dec 00:22
e7f28ff
Compare
Choose a tag to compare
Pre-release

v2.0.0-beta6 - 11/14/2019

You can get the v2.0.0-beta6 version of the PSReadLine module from PowerShell Gallery.
This release includes the following bug fixes:

  • Fix GenerateRender to not throw IndexOutOfRangeException and NullReferenceException (#1049)
  • Filter sensitive history items and avoid writing them to the history file (#1058, #1061, #1068)
  • Clear the previous menu rendering correctly (#1073)
  • Fix correct way to get substring based on buffercells when encountering CJK chars (#1100)
  • Correct cursor jumping from line 2 to line 1 due to line 1 being empty (#1108) (Thanks @msftrncs)
  • In VI mode, moving left or right should stick cursor on logical line (#1120) (Thanks @springcomp)
  • Fix for a NullReferenceException thrown when PSES calls ForcePSEventHandling (#1097)
  • Return error if color property or value is invalid with Set-PSReadLineOption -Colors (#1124)
  • Handle cursor being moved off the end of buffer in MoveCursor (#1146) (Thanks @msftrncs)
  • Supporting line-wise yanks, including paste and undo (#811) (Thanks @springcomp)
  • MoveCursor should not call SetCursorPosition when there is a pending rendering (#1141) (Thanks @msftrncs)
  • Fix y$ to yank to the end of the logical line instead of to the end of the whole buffer (#1168) (Thanks @springcomp)
  • Make y0 yank up to the start of the logical line in VI mode (#1167) (Thanks @springcomp)
  • Fix NullReferenceException in OnBreak (#1179) (Thanks @lzybkr)
  • Set cursor via the public API SetCursorPosition in AcceptLineImpl for better buffer check (#1182) (Thanks @msftrncs)