summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2011-09-24 13:45:25 +0000
committerMaxime Coste <frrrwww@gmail.com>2011-09-24 13:45:25 +0000
commitdc54e7f09c8cacffe3ebe4a960397ffc85313117 (patch)
treee44dfeca375b45f3bbb69bb21d7616811f202e87 /src
parent0cad8ed34b8142ae867386e55e9de7e8ac7b34e3 (diff)
% key selects whole buffer
Diffstat (limited to 'src')
-rw-r--r--src/main.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cc b/src/main.cc
index 7bcf340c..dd955acc 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -417,6 +417,9 @@ std::unordered_map<char, std::function<void (Window& window, int count)>> keymap
{ 'y', do_yank },
{ 'p', do_paste },
+ { '%', [](Window& window, int count) { window.select(false, [](const BufferIterator& cursor)
+ { return Selection(cursor.buffer().begin(), cursor.buffer().end()-1); }); } },
+
{ ':', [](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); } },