Live Templates: proper handling home/end actions with selection in templates

context

+ add tests for editor actions inside template segments
This commit is contained in:
Alexander Zolotov
2015-12-22 18:38:09 +03:00
parent 81f005aba1
commit ebf79c6dfb
15 changed files with 195 additions and 1 deletions
@@ -0,0 +1,5 @@
public class A {
public static void main(String[] args) {
<caret>
}
}
@@ -0,0 +1,5 @@
public class A {
public static void main(String[] args) {
template myVariableValue text<caret>
}
}
@@ -0,0 +1,5 @@
public class A {
public static void main(String[] args) {
template myVariableValue<caret> text
}
}
@@ -0,0 +1,5 @@
public class A {
public static void main(String[] args) {
template myVariableValue t<selection>ext</selection><caret>
}
}
@@ -0,0 +1,5 @@
public class A {
public static void main(String[] args) {
template myVariableVal<selection>ue</selection><caret> text
}
}
@@ -0,0 +1,5 @@
public class A {
public static void main(String[] args) {
template myVariable<selection>Value</selection><caret> text
}
}
@@ -0,0 +1,5 @@
public class A {
public static void main(String[] args) {
template myVariableValue<caret> text
}
}
@@ -0,0 +1,5 @@
public class A {
public static void main(String[] args) {
<caret>template myVariableValue text
}
}
@@ -0,0 +1,5 @@
public class A {
public static void main(String[] args) {
template <caret>myVariableValue text
}
}
@@ -0,0 +1,5 @@
public class A {
public static void main(String[] args) {
<caret><selection>template myVariableValue t</selection>ext
}
}
@@ -0,0 +1,5 @@
public class A {
public static void main(String[] args) {
template <caret><selection>myVariableVal</selection>ue text
}
}
@@ -0,0 +1,5 @@
public class A {
public static void main(String[] args) {
template <caret><selection>myVariable</selection>Value text
}
}
@@ -0,0 +1,5 @@
public class A {
public static void main(String[] args) {
template <caret>myVariableValue text
}
}