Skip to content

Commit 4cab98f

Browse files
committed
Merge branch 'master' of https://github.com/lzybkr/PSReadLine
Conflicts: PSReadLine/Changes.txt
2 parents 040b75a + fba9b6d commit 4cab98f

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

PSReadLine/Changes.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ New functions:
2626

2727
New key bindings:
2828
* Ctrl+D bound to DeleteCharOrExit in Emacs mode
29+
* Ctrl+N/Ctrl+P bound to NextHistory/PreviousHistory in Emacs mode
2930
* Ctrl+PageUp bound to ScrollDisplayUpLine
3031
* Ctrl+PageDown bound to ScrollDisplayDownLine
3132

PSReadLine/KeyBindings.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ void SetDefaultEmacsBindings()
181181
{ Keys.CtrlL, MakeKeyHandler(ClearScreen, "ClearScreen") },
182182
{ Keys.CtrlK, MakeKeyHandler(KillLine, "KillLine") },
183183
{ Keys.CtrlM, MakeKeyHandler(ValidateAndAcceptLine,"ValidateAndAcceptLine") },
184+
{ Keys.CtrlN, MakeKeyHandler(NextHistory, "NextHistory") },
184185
{ Keys.CtrlO, MakeKeyHandler(AcceptAndGetNext, "AcceptAndGetNext") },
186+
{ Keys.CtrlP, MakeKeyHandler(PreviousHistory, "PreviousHistory") },
185187
{ Keys.CtrlR, MakeKeyHandler(ReverseSearchHistory, "ReverseSearchHistory") },
186188
{ Keys.CtrlS, MakeKeyHandler(ForwardSearchHistory, "ForwardSearchHistory") },
187189
{ Keys.CtrlU, MakeKeyHandler(BackwardKillLine, "BackwardKillLine") },

PSReadLine/en-US/about_PSReadline.help.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,11 @@ LONG DESCRIPTION
220220

221221
Clears history in PSReadline. This does not affect PowerShell history.
222222

223-
PreviousHistory (Cmd: <UpArrow> Emacs: <UpArrow>)
223+
PreviousHistory (Cmd: <UpArrow> Emacs: <UpArrow> or <Ctrl+P>)
224224

225225
Replace the current input with the 'previous' item from PSReadline history.
226226

227-
NextHistory (Cmd: <DownArrow> Emacs: <DownArrow>)
227+
NextHistory (Cmd: <DownArrow> Emacs: <DownArrow> or <Ctrl+N>)
228228

229229
Replace the current input with the 'next' item from PSReadline history.
230230

0 commit comments

Comments
 (0)