Capital O insert mode

This commit is contained in:
Roux 2023-04-12 00:19:01 -04:00
parent badd6a0b71
commit 8cb37a7820
1 changed files with 6 additions and 0 deletions

View File

@ -201,6 +201,12 @@ impl State {
self.buffer.insert_char(self.cursor, '\n');
self.mode = Mode::Insert(state);
}
KeyCode::Char('O') => {
let state = InsertState { append: false };
self.cursor.column = 0;
self.buffer.insert_char(self.cursor, '\n');
self.mode = Mode::Insert(state);
}
KeyCode::Char(':') => {
self.mode = Mode::Command(Default::default());
}