mirror of
https://github.com/nushell/reedline.git
synced 2024-08-17 11:50:42 +03:00
Ctrl+h edit binding moved from emacs to common (#461)
This commit is contained in:
parent
d29730a809
commit
e72f927db3
@ -51,7 +51,6 @@ pub fn default_emacs_keybindings() -> Keybindings {
|
||||
kb.add_binding(KM::CONTROL, KC::Char('k'), edit_bind(EC::CutToEnd));
|
||||
kb.add_binding(KM::CONTROL, KC::Char('u'), edit_bind(EC::CutFromStart));
|
||||
// Edits
|
||||
kb.add_binding(KM::CONTROL, KC::Char('h'), edit_bind(EC::Backspace));
|
||||
kb.add_binding(KM::CONTROL, KC::Char('t'), edit_bind(EC::SwapGraphemes));
|
||||
|
||||
// *** ALT ***
|
||||
|
@ -192,5 +192,6 @@ pub fn add_common_edit_bindings(kb: &mut Keybindings) {
|
||||
kb.add_binding(KM::CONTROL, KC::Backspace, edit_bind(EC::BackspaceWord));
|
||||
kb.add_binding(KM::CONTROL, KC::Delete, edit_bind(EC::DeleteWord));
|
||||
// Base commands should not affect cut buffer
|
||||
kb.add_binding(KM::CONTROL, KC::Char('h'), edit_bind(EC::Backspace));
|
||||
kb.add_binding(KM::CONTROL, KC::Char('w'), edit_bind(EC::BackspaceWord));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user