mirror of
https://github.com/nushell/reedline.git
synced 2024-09-11 23:57:21 +03:00
Remove conflicting keybindings added with https://github.com/nushell/reedline/pull/689#issue-2057714568, to fix https://github.com/nushell/nushell/issues/11600#issue-2092758889 (#715)
This commit is contained in:
parent
a46c41cfa3
commit
135dd5202f
@ -155,11 +155,6 @@ pub fn add_common_navigation_bindings(kb: &mut Keybindings) {
|
|||||||
KC::Home,
|
KC::Home,
|
||||||
edit_bind(EC::MoveToLineStart { select: false }),
|
edit_bind(EC::MoveToLineStart { select: false }),
|
||||||
);
|
);
|
||||||
kb.add_binding(
|
|
||||||
KM::CONTROL,
|
|
||||||
KC::Char('a'),
|
|
||||||
edit_bind(EC::MoveToLineStart { select: false }),
|
|
||||||
);
|
|
||||||
kb.add_binding(
|
kb.add_binding(
|
||||||
KM::NONE,
|
KM::NONE,
|
||||||
KC::End,
|
KC::End,
|
||||||
@ -214,10 +209,18 @@ pub fn add_common_edit_bindings(kb: &mut Keybindings) {
|
|||||||
// Base commands should not affect cut buffer
|
// 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('h'), edit_bind(EC::Backspace));
|
||||||
kb.add_binding(KM::CONTROL, KC::Char('w'), edit_bind(EC::BackspaceWord));
|
kb.add_binding(KM::CONTROL, KC::Char('w'), edit_bind(EC::BackspaceWord));
|
||||||
kb.add_binding(KM::CONTROL, KC::Char('x'), edit_bind(EC::CutSelection));
|
|
||||||
kb.add_binding(KM::CONTROL, KC::Char('c'), edit_bind(EC::CopySelection));
|
|
||||||
kb.add_binding(
|
kb.add_binding(
|
||||||
KM::CONTROL,
|
KM::CONTROL | KM::SHIFT,
|
||||||
|
KC::Char('x'),
|
||||||
|
edit_bind(EC::CutSelection),
|
||||||
|
);
|
||||||
|
kb.add_binding(
|
||||||
|
KM::CONTROL | KM::SHIFT,
|
||||||
|
KC::Char('c'),
|
||||||
|
edit_bind(EC::CopySelection),
|
||||||
|
);
|
||||||
|
kb.add_binding(
|
||||||
|
KM::CONTROL | KM::SHIFT,
|
||||||
KC::Char('v'),
|
KC::Char('v'),
|
||||||
edit_bind(EC::PasteCutBufferBefore),
|
edit_bind(EC::PasteCutBufferBefore),
|
||||||
);
|
);
|
||||||
@ -268,5 +271,9 @@ pub fn add_common_selection_bindings(kb: &mut Keybindings) {
|
|||||||
KC::Home,
|
KC::Home,
|
||||||
edit_bind(EC::MoveToStart { select: true }),
|
edit_bind(EC::MoveToStart { select: true }),
|
||||||
);
|
);
|
||||||
kb.add_binding(KM::CONTROL, KC::Char('a'), edit_bind(EC::SelectAll));
|
kb.add_binding(
|
||||||
|
KM::CONTROL | KM::SHIFT,
|
||||||
|
KC::Char('a'),
|
||||||
|
edit_bind(EC::SelectAll),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user