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
It strikes me that (vs --after-context/--before-context) we could provide a "smarter" context where you could declaratively say eg "show me one level of AST parent above matching nodes as context"?
The text was updated successfully, but these errors were encountered:
Thinking about this a little bit, it does sound like an intuitive/possibly useful feature
But I think the implementation would be pretty non-trivial, it looks like it would involve "wiring up" a tree_sitter::Node-aware idea of "context" through at least the searcher
It strikes me that (vs
--after-context
/--before-context
) we could provide a "smarter" context where you could declaratively say eg "show me one level of AST parent above matching nodes as context"?The text was updated successfully, but these errors were encountered: