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[])