Commit Graph
9 Commits
Author SHA1 Message Date
Jason Shirk c5351ddff7 Remove MinimumHistoryCommandLength
People seem to prefer all commands in history, so it seems better to have
fewer options.

The following can be used if the previous functionality is desired:

    Set-PSReadlineOption -AddToHistoryHandler { $args[0].Length -gt 3 }
2013-09-13 08:49:33 -07:00
Jason Shirk 0b41d2f4e8 Add Ctrl+End/Ctrl+Home emulation in cmd mode
Ctrl+End deletes to end of line
Ctrl+Home deletes to start of line

Neither puts deleted text in the clipboard/kill ring.
2013-09-12 19:13:08 -07:00
Jason Shirk 3e23733fd5 Support 2 key chords
Support for 2 key chords has been added.

There is a small breaking change in Set-PSReadlineKeyHandler
because the -CtrlX switch is no longer needed.  It could have
been left in, but it's better to just remove it - not very
many people use this module yet.

The signature of key handlers was also changed to better support
features that have not yet been implemented.  The signature change
shouldn't affect any existing key handlers because default arguments
should cover those cases.
2013-09-11 17:55:30 -07:00
Jason Shirk da336b3a86 Make Ding public for use from custom key handlers. 2013-09-10 10:49:30 -07:00
Jason Shirk b7fc7bd191 Merge branch 'master' of https://github.com/lzybkr/PSReadLine 2013-05-24 23:12:46 -07:00
Jason Shirk a17d05d644 Add Get-PSReadlineKeyHandler
To make it easier to see what keys are bound, you can use the command Get-PSReadlineKeyHandler.

The command Set-PSReadlineKeyHandler also adds support for binding Ctrl-X prefixed commands in Emacs mode.
2013-05-24 19:56:34 -07:00
oising 53714c087f implemented consolekeyinfo converter; added unit tests; tweaked parameters on set-psreadlinehandler 2013-05-24 15:54:07 -04:00
Jason Shirk 50d7464fd2 Test cleanup plus a few new tests. 2013-05-22 22:23:55 -07:00
Jason Shirk 28e07fdb43 Initial checkin. 2013-05-12 23:52:15 -07:00