Change C-u and C-k to be readline compatible, move old C-u to C-s (#5938)

This commit is contained in:
Isaac Khor 2022-07-03 19:43:56 +08:00 committed by GitHub
parent b80299eba7
commit c6f6dcb57c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -447,6 +447,28 @@ let-env config = {
] ]
} }
} }
{
name: unix-line-discard
modifier: control
keycode: char_u
mode: [emacs, vi_normal, vi_insert]
event: {
until: [
{edit: cutfromlinestart}
]
}
}
{
name: kill-line
modifier: control
keycode: char_k
mode: [emacs, vi_normal, vi_insert]
event: {
until: [
{edit: cuttolineend}
]
}
}
# Keybindings used to trigger the user defined menus # Keybindings used to trigger the user defined menus
{ {
name: commands_menu name: commands_menu
@ -465,7 +487,7 @@ let-env config = {
{ {
name: commands_with_description name: commands_with_description
modifier: control modifier: control
keycode: char_u keycode: char_s
mode: [emacs, vi_normal, vi_insert] mode: [emacs, vi_normal, vi_insert]
event: { send: menu name: commands_with_description } event: { send: menu name: commands_with_description }
} }