You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok lets start with the simple one, namely queries of the form:
55
+
56
+
```python
57
+
"smart <big_roi>"
58
+
```
59
+
60
+
As you might expect, the plugin will try to find matches to big roi description , prioritizing ones "nearer" in the AST with respect to the current selection.
61
+
62
+

63
+
64
+
However,there are cases where you are interested in only a portion of this whole ROI. For instance there may be multiple targets in the left hand of an assignment and you want to select only one of them. Or your function may return multiple values. In those cases the
65
+
66
+
```python
67
+
IntegerRefST("big_roi_sub_index",0,10),
68
+
```
69
+
comes in useful:
70
+
71
+

72
+
73
+
74
+
# Case two
75
+
76
+
# Case three
77
+
Once again you can use information about the relative vertical position of your ROI with a command like that:
What on earth is that "block" thing over there? Well for the time being there is only one option available:
103
+
104
+
```python
105
+
Choice("block",{
106
+
"(function|functions)" :"function",
107
+
}
108
+
),
109
+
```
110
+
111
+
So essentially, we can specify a function using a relative vertical desciption. The command will then work just like cases one and two but will search inside that function!
0 commit comments