We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1db4be3 commit 92b6e67Copy full SHA for 92b6e67
packages/cursorless-engine/src/languages/TreeSitterQuery/queryPredicateOperators.ts
@@ -157,6 +157,15 @@ class ShrinkToMatch extends QueryPredicateOperator<ShrinkToMatch> {
157
}
158
159
160
+/**
161
+ * A predicate operator that modifies the range of the match to grow to named trailing siblings.
162
+ *
163
+ * An optional `notText` argument can be provided to break at siblings that match the given text.
164
165
+ * ```
166
+ * (#grow-to-named-siblings! @foo "at")
167
168
+ */
169
class GrowToNamedSiblings extends QueryPredicateOperator<GrowToNamedSiblings> {
170
name = "grow-to-named-siblings!" as const;
171
schema = z.union([z.tuple([q.node]), z.tuple([q.node, q.string])]);
0 commit comments