summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-03-18 22:31:05 +0100
committerMaxime Coste <frrrwww@gmail.com>2013-03-18 22:31:05 +0100
commit5fe7315df9fd11b45c3ca9e35e0f74c07533c0aa (patch)
treeba3782d2f6ed83a356beaf9c31eee8243f6813d7 /src
parenta11a16273488bf85448f42e39a3aff6d4db3f53e (diff)
add 'r' object alias for [] (range)
Diffstat (limited to 'src')
-rw-r--r--src/main.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cc b/src/main.cc
index 594b7d30..cc56723e 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -371,6 +371,7 @@ void do_select_object(Context& context)
{ { Key::Modifiers::None, 'B' }, std::bind(select_surrounding, _1, CodepointPair{ '{', '}' }, flags) },
{ { Key::Modifiers::None, '[' }, std::bind(select_surrounding, _1, CodepointPair{ '[', ']' }, flags) },
{ { Key::Modifiers::None, ']' }, std::bind(select_surrounding, _1, CodepointPair{ '[', ']' }, flags) },
+ { { Key::Modifiers::None, 'r' }, std::bind(select_surrounding, _1, CodepointPair{ '[', ']' }, flags) },
{ { Key::Modifiers::None, '<' }, std::bind(select_surrounding, _1, CodepointPair{ '<', '>' }, flags) },
{ { Key::Modifiers::None, '>' }, std::bind(select_surrounding, _1, CodepointPair{ '<', '>' }, flags) },
{ { Key::Modifiers::None, '"' }, std::bind(select_surrounding, _1, CodepointPair{ '"', '"' }, flags) },