Bind Outdent and Indent respectively to cmd-[ and cmd-]

This commit is contained in:
Antonio Scandurra 2022-03-28 11:34:46 +02:00
parent a2c4205c5c
commit ac88003c19

View File

@ -179,6 +179,8 @@ pub fn init(cx: &mut MutableAppContext) {
ConfirmCompletion(None), ConfirmCompletion(None),
Some("Editor && showing_completions"), Some("Editor && showing_completions"),
), ),
Binding::new("cmd-[", Outdent, Some("Editor")),
Binding::new("cmd-]", Indent, Some("Editor")),
Binding::new("ctrl-shift-K", DeleteLine, Some("Editor")), Binding::new("ctrl-shift-K", DeleteLine, Some("Editor")),
Binding::new("alt-backspace", DeleteToPreviousWordStart, Some("Editor")), Binding::new("alt-backspace", DeleteToPreviousWordStart, Some("Editor")),
Binding::new("alt-h", DeleteToPreviousWordStart, Some("Editor")), Binding::new("alt-h", DeleteToPreviousWordStart, Some("Editor")),