87 Commits
Author SHA1 Message Date
Dan Thompson 4d78ce153d Add the TerminateOrphanedConsoleApps option on Windows to kill orphaned console-attached process that may mess up reading from Console input (#3764) 2023-08-09 10:51:26 -07:00
Dongbo Wang ae08ca6caf Support tooltip rendering in the prediction list view (#3667) 2023-05-02 16:52:19 -07:00
Dongbo Wang 372212e5ca Improve the list view to be scrollable and auto-adjust the list view height (#3583) 2023-02-27 10:48:00 -08:00
spaette 486388c59f Fix some typos in this repository (#3547) 2023-01-23 14:22:59 -08:00
Dongbo Wang 8d1e3c1ee7 Fix the description of CapitalizeWord (#3384) 2022-07-18 11:39:40 -07:00
Enan Ajmain 6808c18762 Add support for upcasing, downcasing, and capitalizing word (#3365) 2022-07-18 10:26:40 -07:00
Dongbo Wang f46f15d2d6 Improve RecomputeInitialCoords to be more robust and handle a couple special cases (#3074) 2022-01-03 16:40:25 -08:00
Dongbo Wang d9cc944338 Update the exception report to make it work better with the new bug template (#2917) 2021-10-11 09:29:52 -07:00
Dongbo Wang 8df5b6ba08 Update PSReadLine corresponding to the prediction interface update (#2225) 2021-02-22 18:17:26 -08:00
Dongbo Wang 6ed95a23d5 Add the SelectCommandArgument bind-able function (#2222) 2021-02-17 15:25:27 -08:00
Dongbo Wang bbb729c214 Move prediction functions to a new group (#2211) 2021-02-11 22:41:24 -08:00
Aditya Patwardhan 6cf129ee35 Add the "Dynamic Help" feature to PSReadLine (#1777)
- Adds a way to view help on alternate screen buffer for full help and uses a Pager from `Microsoft.PowerShell.Pager`.
- Implements dynamic help for parameters by showing it below the current command line like `MenuComplete`.
2021-02-10 17:04:50 -08:00
Maxime Labelle 47fb95728c Make d0 to delete to the start of the current logical line in a multiline buffer in VI mode (#2002) 2021-02-09 21:45:37 -08:00
Dongbo Wang fd1265e385 Add the prediction ListView and also hook up with the CommandPrediction APIs introduced in PS 7.1 (#1909) 2020-11-03 14:17:37 -08:00
Dongbo Wang c266e55b59 Improve the bug reporting message (#1698) 2020-07-25 10:53:03 -07:00
Dongbo Wang 9e6c6b9481 Add basic support for inline predictive suggestion (#1496) 2020-05-09 15:44:04 -07:00
Steve Lee 09300c0990 Return error if color property or value is invalid with Set-PSReadLineOption -Colors (#1124) 2019-11-07 22:57:25 -08:00
Dongbo Wang 7050b12edf 2.0.0-beta4 release preparation (#905)
- Update the `InformationalVersion` tag to `2.0.0-beta4`
- Update the change log
- Update URLs to point to the PowerShell GitHub org.
2019-05-01 18:09:07 -07:00
Jason Shirk 57bc3a65fd Report environment in execption report 2018-10-02 22:02:02 -07:00
Jason Shirk 46d232c22a s/PSReadline/PSReadLine/g
I was terribly inconsistent.

This is a breaking change, though unlikely to cause troubles.
The apis are mostly used in PowerShell scripts which is not
case sensitive.
The cmdlet name change is also mostly safe.

At any rate, this is version 2.0 and breaking changes should be OK.
2017-11-25 21:59:55 -08:00
Jason Shirk 193b4da3ac Fix cursor placement after history replacement
A fix for vi mode broke placing the cursor after recalling commands from
history.

There was also a small inconcistency in placing the cursor in vi mode
when in command mode.

Fix #592
2017-11-25 21:30:45 -08:00
Jason Shirk efaed85187 Add missing function descriptions 2017-11-25 14:41:35 -08:00
Jason Shirk 3412b1a91b ShowKeyBindings and Get-PSReadlineKeyBinding improvements
Fix #114
2017-11-11 22:55:59 -08:00
Jason Shirk be27509fa9 Add a default description for ScriptBlock key binding
Fix #505
2017-11-04 08:40:38 -07:00
Jason Shirk b27ea9d85d Add check for negative index in Replace api 2017-11-02 21:58:54 -07:00
Jason Shirk bff16f4beb Correct resources namespace 2017-09-04 23:20:37 -07:00
Josh Soref ff80a13550 Spelling comments
* spelling: comments in src/Microsoft.PowerShell.PSReadLine
2017-09-02 21:03:11 -07:00
Jason Shirk 138b226ea8 Add basic support for custom colors
Colors can now be customized using RGB (like #RRGGBB) or with escape
sequences.
2017-08-14 08:56:21 -07:00
Jason Shirk (POWERSHELL) 9273a7ef46 Fix sample for strict mode+better custom handler error msg
Fixes #304
2016-01-17 09:39:59 -08:00
srdubya b80ffb9b09 Addressed this feedback:
1  _normalBackground (keybindings.vi.cs) unused
2  copyright notice in *.vi.cs files?
3  ReadLine.vi.cs - InsertCharacter unreferenced
4  SearchBackward - change fn name to ViSearchHistoryBackward?
2016-01-02 08:51:06 -07:00
jason@truewheels.net 22694843e9 Better error for history file access issues
When there is an IO error trying to create the directory for the history file, or some other sort of error trying to read or write the history file, we shouldn't tell the user to report a bug.

Instead, the error will just report the exception message, and if it happens twice, suggest some solutions.

The error will not be reported more than twice, because that would be too annoying.
Fixes #322
2015-12-30 22:42:32 -08:00
jason@truewheels.net 50b0bdad8e Cleanup resources 2015-12-24 21:06:48 -08:00
jason@truewheels.net 64ffb085e0 Merge branch 'master' of https://github.com/rkeithhill/PSReadLine into rkeithhill-master
Conflicts:
	PSReadLine/PSReadLine.csproj
	PSReadLine/PSReadLineResources.Designer.cs
	PSReadLine/PSReadLineResources.resx
	PSReadLine/ReadLine.cs
2015-12-16 09:41:00 -08:00
Dan Thompson d38c9624b0 Add the ability to change Vi cmd mode dispatch tables. 2015-12-09 22:48:35 -08:00
Keith Hill b0b441c080 Added InsertLineAbove and InsertLineBelow functions and set them up to key bind to Ctrl+Enter and Ctrl+Shift+Enter in Windows mode. Not being an emacs person, I'm not sure what key bindings these two functions would bind to. I also added unit tests for the two functions as well as a unit test for what I believe is a bug in the BeginningOfLine (home) function when in multiline mode. I also updated the project to have the appropriate default namespace so that the resource file gets re-generated with the correct resource name without having to resort to hacking the csproj file. There was also an issue with trying to run unit tests because the unit test setup of PSReadline sets engineInstrincs to null and that caused a null reference exception which I worked-around by testing for null first. 2015-07-20 19:54:33 -06:00
srdubya c4c396ed72 Adding documentation for 'o', 'O', and 'J''s key handling methods. 2015-06-28 10:54:03 -06:00
srdubya 8dbd2827d3 Fixed merge problems, plus fixed broken tests. 2015-06-21 07:47:36 -06:00
srdubya ab52d2b642 1st attempt at merge with #251. 2015-06-20 16:47:33 -06:00
Jason Shirk (POWERSHELL) 7ccac6cf31 Change resource name to match in-box version 2015-06-19 17:07:39 -07:00
Jason Shirk (POWERSHELL) 94a6ba40c9 Fix/suppress various FxCop errors 2015-06-18 18:24:23 -07:00
Jason Shirk (POWERSHELL) c986e0eae5 Rename namespace PSConsoleUtilities to Microsoft.PowerShell 2015-06-18 15:32:20 -07:00
srdubya f3adb71c05 Fixed missing newline before "Oops". 2015-06-06 13:15:58 -06:00
srdubya 8a2c8a988f Added the changing of the console cursor size when in command/insert mode. Use the -ChangeCursor option to control. 2015-03-15 13:56:48 -06:00
srdubya 39f37093ec Sync'd with upstream. 2015-03-08 07:58:49 -06:00
jason@truewheels.net 17856e99a1 Remove demo mode
Demo mode doesn't work right now, and I found a better alternative
here:  https://github.com/Code52/carnac

Fixes #192
2015-01-26 19:45:41 -08:00
jason@truewheels.net 6aac7ec10c Update CaptureScreen description
Fixes #185
2015-01-21 09:24:34 -08:00
srdubya 51d14f4b37 Fixing problem with tab completion after 'c' in command mode. 2015-01-18 06:43:49 -07:00
srdubya 6838123f0e Added support for mid-chord numberic arguments. 2014-12-27 11:58:56 -07:00
srdubya 8039699367 Cleaned a couple duplicate functions. 2014-12-24 12:43:26 -07:00
srdubya 16f0ad9c5c Sync'd with Upstream. 2014-12-22 18:27:22 -07:00