tab补全得用 -Chord

This commit is contained in:
shenjack 2024-01-26 10:49:24 +08:00
parent 511cc4cf54
commit d5db246c22
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -8,11 +8,9 @@ Set-PSReadLineOption -EditMode Windows
Set-PSReadLineOption -PredictionViewStyle ListView Set-PSReadLineOption -PredictionViewStyle ListView
Set-PSReadLineOption -BellStyle None Set-PSReadLineOption -BellStyle None
# 设置 Tab 键补全 # 设置 Tab 键补全
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete Set-PSReadlineKeyHandler -Chord Tab -Function MenuComplete
# 设置 Ctrl+z 为撤销 # 设置 Ctrl+z 为撤销
Set-PSReadLineKeyHandler -Key "Ctrl+z" -Function Undo Set-PSReadLineKeyHandler -Key "Ctrl+z" -Function Undo
# 设置 Ctrl+d 为菜单补全和 Intellisense
# Set-PSReadLineKeyHandler -Key "Ctrl+d" -Function MenuComplete
# 设置向上键为后向搜索历史记录 # 设置向上键为后向搜索历史记录
Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
# 设置向下键为前向搜索历史纪录 # 设置向下键为前向搜索历史纪录