Add PSReadLine bindings for Fish style autosuggestions
This commit is contained in:
parent
0f07186aa1
commit
cc02ed0914
@ -20,6 +20,10 @@ Set-PSReadLineKeyHandler -Chord 'Ctrl+Oem4' -Function ViCommandMode
|
|||||||
# Enable menu style tab completions. https://stackoverflow.com/a/37715242
|
# Enable menu style tab completions. https://stackoverflow.com/a/37715242
|
||||||
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
|
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
|
||||||
|
|
||||||
|
# Autosuggestion bindings for PSReadLine 2.1.0+
|
||||||
|
Set-PSReadLineKeyHandler -Chord "Ctrl+p" -Function ForwardChar
|
||||||
|
Set-PSReadLineKeyHandler -Chord "Ctrl+o" -Function ForwardWord
|
||||||
|
|
||||||
# Change cursor shape based on what Vi mode the line editor is in.
|
# Change cursor shape based on what Vi mode the line editor is in.
|
||||||
# Tested and works with PowerShell 5.1
|
# Tested and works with PowerShell 5.1
|
||||||
# NOTE: Requires: Install-Module PsReadline -Scope CurrentUser -Force
|
# NOTE: Requires: Install-Module PsReadline -Scope CurrentUser -Force
|
||||||
|
Loading…
x
Reference in New Issue
Block a user