add 'r' object alias for [] (range)

This commit is contained in:
Maxime Coste 2013-03-18 22:31:05 +01:00
parent a11a162734
commit 5fe7315df9
2 changed files with 2 additions and 1 deletions

View File

@ -168,7 +168,7 @@ object you want.
* _b_, _(_ or _)_: select the enclosing parenthesis
* _B_, _{_ or _}_: select the enclosing {} block
* _[_ or _]_: select the enclosing [] block
* _r_, _[_ or _]_: select the enclosing [] block
* _<_ or _>_: select the enclosing <> block
* _"_: select the enclosing double quoted string
* _'_: select the enclosing single quoted string

View File

@ -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) },