add synonyms for text object motions

This commit is contained in:
rebornix 2016-08-17 03:49:51 -07:00
parent 69d12b6e9b
commit e596ed6538
2 changed files with 34 additions and 6 deletions

View File

@ -396,12 +396,14 @@ Status | Command | Description
:white_check_mark: | :1234: is | Select "inner sentence"
| :1234: ap | Select "a paragraph"
| :1234: ip | Select "inner paragraph"
| :1234: ab | Select "a block" (from "[(" to "])")
| :1234: ib | Select "inner block" (from "[(" to "])")
| :1234: aB | Select "a Block" (from "[{" to "]}")
| :1234: iB | Select "inner Block" (from "[{" to "]}")
:white_check_mark: | :1234: a> | Select "a <> block"
:white_check_mark: | :1234: i> | Select "inner <> block"
:white_check_mark: | :1234: a], a[ | select '[' ']' blocks
:white_check_mark: | :1234: i], i[ | select inner '[' ']' blocks
:white_check_mark: | :1234: ab, a(, a) | Select "a block" (from "[(" to "])")
:white_check_mark: | :1234: ib, i), i( | Select "inner block" (from "[(" to "])")
:white_check_mark: | :1234: a>, a< | Select "a &lt;&gt; block"
:white_check_mark: | :1234: i>, i< | Select "inner <> block"
:white_check_mark: | :1234: aB, a{, a} | Select "a Block" (from "[{" to "]}")
:white_check_mark: | :1234: iB, i{, i} | Select "inner Block" (from "[{" to "]}")
| :1234: at | Select "a tag block" (from <aaa> to </aaa>)
| :1234: it | Select "inner tag block" (from <aaa> to </aaa>)
:white_check_mark: | :1234: a' | Select "a single quoted string"

View File

@ -3223,6 +3223,12 @@ class MoveIClosingParentheses extends MoveInsideCharacter {
charToMatch = "(";
}
@RegisterAction
class MoveIClosingParenthesesBlock extends MoveInsideCharacter {
keys = ["i", "b"];
charToMatch = "(";
}
@RegisterAction
class MoveAParentheses extends MoveInsideCharacter {
keys = ["a", "("];
@ -3237,6 +3243,13 @@ class MoveAClosingParentheses extends MoveInsideCharacter {
includeSurrounding = true;
}
@RegisterAction
class MoveAParenthesesBlock extends MoveInsideCharacter {
keys = ["a", "b"];
charToMatch = "(";
includeSurrounding = true;
}
@RegisterAction
class MoveICurlyBrace extends MoveInsideCharacter {
keys = ["i", "{"];
@ -3249,6 +3262,12 @@ class MoveIClosingCurlyBrace extends MoveInsideCharacter {
charToMatch = "{";
}
@RegisterAction
class MoveIClosingCurlyBraceBlock extends MoveInsideCharacter {
keys = ["i", "B"];
charToMatch = "{";
}
@RegisterAction
class MoveACurlyBrace extends MoveInsideCharacter {
keys = ["a", "{"];
@ -3263,6 +3282,13 @@ class MoveAClosingCurlyBrace extends MoveInsideCharacter {
includeSurrounding = true;
}
@RegisterAction
class MoveAClosingCurlyBraceBlock extends MoveInsideCharacter {
keys = ["a", "B"];
charToMatch = "{";
includeSurrounding = true;
}
@RegisterAction
class MoveICaret extends MoveInsideCharacter {
keys = ["i", "<"];