Add hotkyes for moving up/down by several lines at a time.
This commit is contained in:
parent
9dc3f3aa4c
commit
62bfd9e49c
|
@ -288,6 +288,13 @@ impl TermUI {
|
|||
self.editor.cursor_up(1);
|
||||
}
|
||||
|
||||
KeyEvent {
|
||||
code: KeyCode::Up,
|
||||
modifiers: KeyModifiers::CONTROL,
|
||||
} => {
|
||||
self.editor.cursor_up(8);
|
||||
}
|
||||
|
||||
KeyEvent {
|
||||
code: KeyCode::Down,
|
||||
modifiers: EMPTY_MOD,
|
||||
|
@ -295,6 +302,13 @@ impl TermUI {
|
|||
self.editor.cursor_down(1);
|
||||
}
|
||||
|
||||
KeyEvent {
|
||||
code: KeyCode::Down,
|
||||
modifiers: KeyModifiers::CONTROL,
|
||||
} => {
|
||||
self.editor.cursor_down(8);
|
||||
}
|
||||
|
||||
KeyEvent {
|
||||
code: KeyCode::Left,
|
||||
modifiers: EMPTY_MOD,
|
||||
|
|
Loading…
Reference in New Issue
Block a user