From 26313a3f683207bf7595d8fabc6578e934061101 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 21 Aug 2012 20:06:35 +0200 Subject: [PATCH] bind to window::center_selection --- src/main.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cc b/src/main.cc index b9fbecdb..88c0115b 100644 --- a/src/main.cc +++ b/src/main.cc @@ -381,7 +381,6 @@ std::unordered_map> keymap = { { Key::Modifiers::None, 's' }, do_select_regex }, - { { Key::Modifiers::None, '.' }, do_repeat_insert }, { { Key::Modifiers::None, '%' }, [](Context& context) { context.editor().clear_selections(); context.editor().select(select_whole_buffer); } }, @@ -438,6 +437,8 @@ std::unordered_map> keymap = { { Key::Modifiers::Alt, 'j' }, do_join }, { { Key::Modifiers::Alt, 'x' }, [](Context& context) { context.editor().select(select_whole_lines); } }, + + { { Key::Modifiers::Alt, 'c' }, [](Context& context) { if (context.has_window()) context.window().center_selection(); } }, }; }