Add emacs key bindings for up/down/left/right

This commit is contained in:
Max Brunsfeld
2021-05-07 13:51:17 -07:00
parent 1c50059575
commit d8d36a32bf
+4
View File
@@ -67,6 +67,10 @@ pub fn init(app: &mut MutableAppContext) {
Binding::new("down", "buffer:move_down", Some("BufferView")),
Binding::new("left", "buffer:move_left", Some("BufferView")),
Binding::new("right", "buffer:move_right", Some("BufferView")),
Binding::new("ctrl-p", "buffer:move_up", Some("BufferView")),
Binding::new("ctrl-n", "buffer:move_down", Some("BufferView")),
Binding::new("ctrl-b", "buffer:move_left", Some("BufferView")),
Binding::new("ctrl-f", "buffer:move_right", Some("BufferView")),
Binding::new(
"alt-left",
"buffer:move_to_previous_word_boundary",