From b58694939c8bdc2a0b5759f1e6f7c094246cbb9a Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 26 Oct 2011 14:22:48 +0000 Subject: [PATCH] bind alt-[lLhH] to select_to_eol(_reverse)? --- src/main.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.cc b/src/main.cc index b7693244..8f2dd8d7 100644 --- a/src/main.cc +++ b/src/main.cc @@ -549,12 +549,18 @@ std::unordered_map> alt_ke { 'f', [](Window& window, int count) { window.select(std::bind(select_to_reverse, _1, getch(), count, true)); } }, { 'T', [](Window& window, int count) { window.select(std::bind(select_to_reverse, _1, getch(), count, false), true); } }, { 'F', [](Window& window, int count) { window.select(std::bind(select_to_reverse, _1, getch(), count, true), true); } }, + { 'w', [](Window& window, int count) { do { window.select(select_to_next_WORD); } while(--count > 0); } }, { 'e', [](Window& window, int count) { do { window.select(select_to_next_WORD_end); } while(--count > 0); } }, { 'b', [](Window& window, int count) { do { window.select(select_to_previous_WORD); } while(--count > 0); } }, { 'W', [](Window& window, int count) { do { window.select(select_to_next_WORD, true); } while(--count > 0); } }, { 'E', [](Window& window, int count) { do { window.select(select_to_next_WORD_end, true); } while(--count > 0); } }, { 'B', [](Window& window, int count) { do { window.select(select_to_previous_WORD, true); } while(--count > 0); } }, + + { 'l', [](Window& window, int count) { do { window.select(select_to_eol, false); } while(--count > 0); } }, + { 'L', [](Window& window, int count) { do { window.select(select_to_eol, true); } while(--count > 0); } }, + { 'h', [](Window& window, int count) { do { window.select(select_to_eol_reverse, false); } while(--count > 0); } }, + { 'H', [](Window& window, int count) { do { window.select(select_to_eol_reverse, true); } while(--count > 0); } }, }; int main(int argc, char* argv[])