Commit Graph
666 Commits
Author SHA1 Message Date
Sergey Vasin a873097a5e Add comment in SamplePSReadLineProfile.ps1 (#1712) 2020-08-02 16:12:02 -07:00
Maxime Labelle 1d3964160d vi-mode - Make 'dj' delete the current and next n logical lines (#1697) 2020-07-29 16:51:15 -07:00
Maxime Labelle 8b0cc85965 vi-mode: Make 'D' and 'd$' delete to the end of the current logical line (#1695) 2020-07-26 10:26:08 -07:00
Maxime Labelle 8d74e42664 vi-mode: 'dd' now handles single line or multiline buffers consistently (#1694) 2020-07-26 10:25:14 -07:00
Dongbo Wang b1736f67d9 Update build to use .NET 3.1 for compliance (#1702) 2020-07-26 10:19:36 -07:00
Maxime Labelle b875ec3787 Remove duplicated code (#1700) 2020-07-25 16:24:08 -07:00
Maxime Labelle c7ef3bd0f6 vi-mode: Add 'dG' to delete to the end of multiline buffer (#1692) 2020-07-25 11:06:54 -07:00
Dongbo Wang c266e55b59 Improve the bug reporting message (#1698) 2020-07-25 10:53:03 -07:00
Maxime Labelle cd3ca2911d vi-mode: Make 'dd' deletes the logical line instead of the entire buffer (#1658) 2020-07-24 23:08:05 -07:00
Maxime Labelle 6cacbebf8d Fix UpHat (^) in vi-mode to move the cursor while yanking (#1656) 2020-07-13 14:25:38 -07:00
Dustin L. Howett 90422ac2ad Teach PSReadline to not force the background color during render (#1626)
Upcoming versions of the Windows Console will be able to differentiate
a color set by the Win32 API from a color set by VT. This code
transforms a Win32 color into a VT color, and then uses that VT color
during rendering. When an enlightened console host receives this VT, it
may handle it differently (translate it differently, reverse it
differently, store it differently). Use `39;49` for the default foreground/background.

We'll also teach the various console implementations how to
handle it.
2020-07-03 15:59:28 -07:00
Dongbo Wang fd9980642c Fix incremental history saving when the history queue is full (#1602) 2020-06-15 10:00:44 -07:00
Dongbo Wang 6c58aff54a Update 'HelpInfoURI' for the PSReadLine module (#1589) 2020-06-11 16:58:30 -07:00
Dongbo Wang ba3ebf27b1 Add an key binding example: ForwardCharAndAcceptNextSuggestionWord (#1601) 2020-06-10 14:02:28 -07:00
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