diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2011-11-22 14:31:20 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2011-11-22 14:31:20 +0000 |
| commit | d27aaab066f34b16ff4f038ec5ce91f479a4352b (patch) | |
| tree | f2c1f669812b17067788a1086c52faa57e0de20d /src | |
| parent | a1200aacad1c2c7df49c43dd9848268255262ae8 (diff) | |
use alt-x instead of , to select whole lines
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc index f92df9f8..3ecfae3f 100644 --- a/src/main.cc +++ b/src/main.cc @@ -601,7 +601,6 @@ std::unordered_map<char, std::function<void (Window& window, int count)>> keymap { 'n', [](Window& window, int count) { do_search_next(window); } }, { 'u', [](Window& window, int count) { do { if (not window.undo()) { print_status("nothing left to undo"); break; } } while(--count > 0); } }, { 'U', [](Window& window, int count) { do { if (not window.redo()) { print_status("nothing left to redo"); break; } } while(--count > 0); } }, - { ',', [](Window& window, int count) { window.multi_select(select_whole_lines); } }, }; std::unordered_map<char, std::function<void (Window& window, int count)>> alt_keymap = @@ -626,6 +625,8 @@ std::unordered_map<char, std::function<void (Window& window, int count)>> alt_ke { 's', do_split_regex }, { 'j', do_join }, + + { 'x', [](Window& window, int count) { window.multi_select(select_whole_lines); } }, }; int main(int argc, char* argv[]) |
