From 2efa120612b0466528e9eeacbf8b390530ede2d4 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 22 Sep 2011 09:24:16 +0000 Subject: [PATCH] o key to open a line after the current one --- src/main.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cc b/src/main.cc index 20c64ad4..191c82f8 100644 --- a/src/main.cc +++ b/src/main.cc @@ -216,6 +216,7 @@ void do_insert(Window& window, bool append = false) { scoped_status("-- INSERT --"); Kakoune::IncrementalInserter inserter(window, append); + draw_window(window); while(true) { const WindowCoord& pos = inserter.cursors().back(); @@ -345,6 +346,9 @@ std::unordered_map> keymap { 'c', [](Window& window, int count) { window.erase(); do_insert(window); } }, { 'i', [](Window& window, int count) { do_insert(window); } }, { 'a', [](Window& window, int count) { do_insert(window, true); } }, + { 'o', [](Window& window, int count) { window.select(true, select_line); window.append("\n"); do_insert(window, true); } }, + + { ':', [](Window& window, int count) { do_command(); } }, { ' ', [](Window& window, int count) { window.empty_selections(); } }, { 'w', [](Window& window, int count) { do { window.select(false, select_to_next_word); } while(--count > 0); } },