752 Commits
Author SHA1 Message Date
Dongbo Wang 2005773497 Update ChangeLog and version for 2.1.0-beta2 release (#1588) 2020-06-05 11:03:23 -07:00
Dongbo Wang a2a409d7ad Expose 'ViBackwardChar' and 'ViForwardChar' as bindable functions (#1547) 2020-05-25 22:46:13 -07:00
Dongbo Wang 65d332e277 Reset all VT attributes for PromptText if it contains VT sequences (#1544) 2020-05-21 22:48:15 -07:00
Dongbo Wang 1f28287f72 Make 'ViForwardChar' able to accept suggestions (#1528) 2020-05-18 14:16:20 -07:00
Dongbo Wang ba5294f88a Make edit group more stable in VI mode (#1526) 2020-05-18 13:29:29 -07:00
Tyler James Leonhardt 88a21e484f Run script in local scope to make PSReadLine works in PSES in ConstrainedLanguageMode (#1527) 2020-05-14 16:58:52 -07:00
Dongbo Wang 24636202f8 Relax the sensitive words we filter (#1517) 2020-05-12 13:43:58 -07:00
Dongbo Wang 67f09a4136 Refactor 'SelfInsert' to avoid duplicate logic (#1510) 2020-05-09 15:44:41 -07:00
Dongbo Wang 9e6c6b9481 Add basic support for inline predictive suggestion (#1496) 2020-05-09 15:44:04 -07:00
Dongbo Wang 5204b85852 Fix the env-data script and write buffer info in case of exception (#1482) 2020-04-21 10:21:10 -07:00
Steve Lee 60bd4c069b Remove MIT License, move License.txt to root and update build script (#1452) 2020-04-20 14:57:00 -07:00
Anthony Vanelverdinghe ebfe4ce0db Add the template parameter to the bug report link (#1441) 2020-03-31 22:50:29 -07:00
Dongbo Wang 38b933fadc Update ChangeLog and version for 2.0.1 release (#1439) 2020-03-31 13:24:20 -07:00
Dongbo Wang d3eac095cc Update docs to reflect the new -Chord parameter to Get-PSReadLineKeyHandler (#1438) 2020-03-31 11:30:47 -07:00
theaquamarine fcb2c9dd48 Add a -Chord parameter to Get-PSReadLineKeyHandler (#1298) 2020-03-31 10:11:54 -07:00
Dongbo Wang 8b778c6119 Correct the default foreground/background colors (#1435) 2020-03-30 15:43:22 -07:00
Dongbo Wang 6b5e9ff4bd Update ChangeLog and version for 2.0.0 GA release (#1345) 2020-02-10 11:26:49 -08:00
theaquamarine fbd5dbcd04 Enable F5 debugging of PSReadLine in Visual Studio (#1319) 2020-01-30 09:44:41 -08:00
Dongbo Wang 78635c0a48 Compliance: Update the .NET Core version and PowerShell SDK package (#1320) 2020-01-28 09:44:26 -08:00
Dongbo Wang 03a0d3fe2b Name the ReadKey thread for debug purpose (#1313) 2020-01-23 11:40:37 -08:00
Dongbo Wang a047a07fc4 Update ChangeLog and version for 2.0.0-rc2 release (#1296) 2020-01-13 12:02:52 -08:00
theaquamarine 4e75a916c1 Allow InsertPairedBraces to wrap selected text (#1293) 2020-01-13 11:09:05 -08:00
theaquamarine 40a02853a8 Allow SmartInsertQuote to surround a keyword or variable (#1289) 2020-01-13 11:03:54 -08:00
theaquamarine 57e9e11d17 Allow SmartInsertQuote to insert pair of quotes when cursor is at a closing brace (#1288) 2020-01-13 11:02:58 -08:00
Dongbo Wang 958ce3aeb2 Fix a few VI edit mode issues (#1262) 2020-01-07 13:08:39 -08:00
Dongbo Wang fd13554df8 Preserve and clear the saved current line properly (#1259)
1. Preserve the saved current line and the history index while in a series of history commands.
    So when switching between different history command, such as from `F8`/`Shift+F8` (`HistorySearchBackward` and `HistorySearchForward`) to `UpArrow`/`DownArrow`  (recall history) or from `Ctrl+r`/`Ctrl+s` to `UpArrow`/`DownArrow`, the history command can continue to work as expected.
2. Clear the saved current line when we are out of a series of history commands.
    So the saved line will not leak to another unrelated history search.
2020-01-01 22:44:46 -08:00
Dongbo Wang d648aed6da Fix the exception when searching history with ctrl+r or ctrl+s (#1256) 2019-12-20 23:00:17 -08:00
Mike Battista 7e688f0cd5 Fix RepeatLastCharSearch and RepeatLastCharSearchBackwards to not flip their functionalities (#1253) 2019-12-19 12:59:57 -08:00
Aditya Patwardhan a1d3ec36ac Update HelpInfoURI to point to latest help content (#1251) 2019-12-16 14:57:00 -08:00
Dongbo Wang 7e53c870f8 Update key bindings in sample and doc now that 'Shift' is inferred (#1248) 2019-12-12 13:07:56 -08:00
Dongbo Wang 616b8ae0cf Use '2.0.0-rc1' instead of 'rc.1' due to the PowerShellGallery's limitation (#1241) 2019-12-10 17:37:45 -08:00
Dongbo Wang d02d6004f2 Update the InformationalVersion to 2.0.0-rc.1 (#1240) 2019-12-10 17:05:28 -08:00
Dongbo Wang 7b27696eea Update ChangeLog and version for 2.0.0-rc.1 release (#1239) 2019-12-10 16:41:51 -08:00
Dongbo Wang 8c95f93b6a Make the continuation prompt's color sequence always explicitly specified. (#1238) 2019-12-10 16:06:59 -08:00
Maxime Labelle 9ad8eb6769 Ensure the desired column number is used while moving up or down in VI mode (#1122) 2019-12-09 13:48:14 -08:00
Carl Morris f31538e3e7 Utilize LengthInBufferCells when creating Completions Menu (#1214)
* Use LenthInBufferCells for Completions
* Remove unused ShortenLongCompletions

Use LengthInBufferCells() for determining the display width of menu items
in CreateCompletionMenu() to correct support of CJK characters in
completion items.
2019-12-06 00:45:35 -08:00
Carl Morris 1c41239b34 Correct cursor positioning (#1221)
Correct cursor positioning in cases where newline appears 1 character before
last column, or a CJK character ends the line but wraps to next display
line, and in cases where continuation prompt contains either CJK characters,
or VT color sequences.

Fixes #1216, #1217, #1188.
2019-12-06 00:12:54 -08:00
Dongbo Wang 6f0ccf40ca Fix an 'ArgumentOutOfRangeException' when error prompt contains CJK (#1206) 2019-11-25 17:30:45 -08:00
Jason Shirk 599e1784a9 Improve handling of color in prompts (#1180) 2019-11-25 12:59:09 -08:00
Maxime Labelle b995497c9c Fix an IndexOutOfRangeException in VI mode (#1200) 2019-11-25 10:27:30 -08:00
Maxime Labelle f657c8b230 Fix an assertion in debug build that crashes PSReadLine (#1199) 2019-11-25 10:17:22 -08:00
Dongbo Wang e7f28ff8ac Update ChangeLog to include 2 more bug fixes in the 2.0.0-beta6 release (#1186) 2019-11-14 11:45:45 -08:00
Carl Morris 9bc2a6502a Set cursor via the public API SetCursorPosition in AcceptLineImpl for better buffer check (#1182)
Instead of _console.SetCursorPosition(), use public API SetCursorPosition so that existing end of buffer checks can be performed.
2019-11-14 10:42:23 -08:00
Jason Shirk 9644382e1c Fix NullReferenceException in OnBreak (#1179)
The Windows event log reports a NullReferenceException in
PlatformWindows.OnBreak.

It's unclear what the repro is (perhaps closing the console before it is
fully initialized) but a fix is simple - adding null checks.
2019-11-14 10:28:38 -08:00
Dongbo Wang a4d54090f8 Update ChangeLog and version for 2.0.0-beta6 release (#1178) 2019-11-13 16:43:00 -08:00
Maxime Labelle a3e9172ead Make 'y0' yank up to the start of the logical line in VI mode. (#1167) 2019-11-13 13:51:17 -08:00
Maxime Labelle 06aec2c4ea Fix y$ to yank to the end of the logical line instead of to the end of the whole buffer. (#1168) 2019-11-12 11:58:49 -08:00
Carl Morris 4576a77329 MoveCursor should not call SetCursorPosition when there is a pending rendering. (#1141) 2019-11-08 22:54:02 -08:00
Maxime Labelle f25a089290 Supporting line wise yanks, including paste and undo. (#811) 2019-11-08 14:42:13 -08:00
Carl Morris 7c825775eb Handle cursor being moved off the end of buffer in MoveCursor. (#1146) 2019-11-08 10:45:41 -08:00